These are my solutions for Advent of Code.
To generate a script for a new problem, run:
python gen.py <problem_number> [--year <desired_year>]
The --year
flag is optional; by default the current year will be chosen. The new problem script will be placed in problems_{desired_year}/{problem_number}.py
.
To run the script for a particular solution part, run:
python run.py <problem_number> <part_1|part_2> [--year <desired_year>]
As before, the --year
flag is optional and by default the current year will be chosen.