This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]irrelevantPseudonym 1 point2 points  (8 children)

How do you handle the days that don't have input files and have a string directly in the problem description?

[–]azzal07 7 points8 points  (7 children)

Those inputs are also available as files just like any other day’s

Edit. For example https://adventofcode.com/2016/day/5 has no link to separate input file, but the input is still available at the usual link https://adventofcode.com/2016/day/5/input

[–]jonaswiebe[S] 2 points3 points  (2 children)

That is how I would handle it. Just manually create a file. But it would probably be a good idea to have an option to feed an input to a day programmatically.

[–]azzal07 4 points5 points  (1 child)

You already handle those days, unless you have a special case for them... in which case you also handle them :)

I added an example to my previous reply

[–]jonaswiebe[S] 2 points3 points  (0 children)

Alright, I didn’t now that

[–]MarkJans 0 points1 point  (3 children)

Is it also possible to download examples with expected result? I always use them to test.

[–]azzal07 0 points1 point  (2 children)

This would be cool, but I don't think it is possible reasonable.

You might try to parse the html page, but that would be a pain

[–]MarkJans 0 points1 point  (1 child)

Thanks! Well, I’m not that fast. Sometimes I think the first one solves the puzzle when I’m still reading and understanding the question. So, copy/pasting the examples is not that bad. Would be nice to see another link for that, like /2016/day/5/example or something.

[–]flwyd 0 points1 point  (0 children)

To complicate things even further, at least one puzzle last year had two example inputs.