Puzzle solutions for Advent of Code 2022 in Python (for now).
Days completed (click links for source code):
- day 1
- day 2
- day 3
- day 4
- day 5
- day 6
- day 7
- day 8
- day 9
- day 10
- day 11
- day 12
- day 13
- day 14
- day 15
- day 16
- day 17
- day 18
- day 19
- day 20
- day 21
- day 22
- day 23
- day 24
- day 25
The ./run
script wraps the driver for the advent2022
package. By default, it runs the latest day, but it also accepts a list of days
on the command-line. The default for each day is to read the baked-in input from
my advent2022 account. The driver also accepts an argument to read input from
a different file (which obviously only makes sense when running a single day).
usage: advent2022 [-h] [-P] [-v] [-t] [-I | -i INPUT | -a] ...
Run advent 2022 day-specific problems.
positional arguments:
days Day(s) to run.
optional arguments:
-h, --help show this help message and exit
-P, --pdb Debug with PDB.
-v, --verbose More output.
-t, --time Profile runtime.
Input Options:
-I, --stdin Read from stdin.
-i INPUT, --input INPUT
Input file (instead of day/input.txt)
-a, --all Run all days.
All scripts use standard library modules and expect Python >= 3.4.