4 Commits (f2821aac4cd9618bc56ee01b2f62e27148c0386e)

Author SHA1 Message Date
Alfred Melch f885b70c9e Fix example extraction
Assumtion was that the first and last lines of examples are always
blank. In 2021/06 the example is only one line. It has no blank line at
the end so the example was deleted by the script.

Changed:
The script will now check if the line is actually blank before deleting
it. Requires that the indentation is removed beforehand.
3 years ago
Alfred Melch 861dfd0bc5 Fix input fetching script
Retain blank lines in code examples.

The script removed all blank lines from code examples. This is not
always desired as there might be important blank lines inside the code
block. The change targets specifically the starting and ending blank line
of the examples and removes them.
3 years ago
Alfred Melch b9ef175cf6 Helper script: fetch puzzle description
Extended the helper script to fetch the puzzle description. It will be
put into a README.md. The input will now be stored into a input folder
along with examples extracted from the puzzle description.

Adjusted the parsing of the day from the folder name. It will now take
any number that appears in the folder name. Previously: folder name must
be a number, leading zeros will be stripped (e.g 01, 02). Now: there can
be other characters as well (e.g day01, day02)
3 years ago
Alfred Melch 3850dba4ec Add latest solutions 3 years ago