Giter VIP home page Giter VIP logo

aocd-example-parser's Introduction

aocd-example-parser's People

Contributors

rnbwdsh avatar wimglenn avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

rnbwdsh paulsuh

aocd-example-parser's Issues

Example parsing fails if input_data is different for Part 1 and Part 2

At least for 2023.01, my example data has

pqr3stu8vwx
a1b2c3d4e5f
treb7uchet

and

eightwothree
abcone2threexyz
xtwone3four
4nineeightseven2
zoneight234
7pqrstsixteen 

This means that there needs to be two sets of input_data for the examples. From the code it looks like the example data is always taken from the first part.

I've forked the repo and I'm going to take a swing at fixing this. Question is how to return the new input_data. I think the best way is to return two Examples in the list Puzzle.examples. The first one will have the Part 1 input_data, answer_a, and answer_b. The second one will have the Part 2 input_data, answer_a, and answer_b. This will ensure that any existing code that depends on Puzzle.examples[0]. will continue to work. Using the second set of example input data only requires using Puzzle.examples[1] in place of [0].

Thoughts?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.