My solutions to the exercises at https://adventofcode.com/2023, completed in Python.
First grab your session cookie from your browser and save it to a .cookie
file in the
top-level directory. This will allow you to grab your associated input directly, as well
as submit your solution via the terminal. Afterwards, setup your AoC virtual environment
by running the following:
poetry install
The code base for a given day can be initialized (which will also grab your specific input) by running:
poetry run init_day <day>
If you want to test your code against the test cases (you will have to
copy and paste the examples into the test_*.txt
file):
poetry run submit <day> -p <part> -t
To run the code for any particular day without submitting your solution:
poetry run submit <day> -p <part> -n
If you also wish to automatically submit your solution (assuming you have saved the session cookie), you can run:
poetry run submit <day> -p <part>
Note: For each of the previous 3 commands, part
is a choice between 1
or 2
to
indicate the part of the puzzle being tested / run.
Day | Name | Progress |
---|---|---|
01 | Trebuchet? | ✓ |
02 | Cube Conundrum | ✓ |
03 | Gear Ratios | ✓ |
04 | Scratchcards | ✓ |
05 | If You Give A Seed A Fertilizer | ✓ |
06 | Wait For It | ✓ |
07 | Camel Cards | ✓ |
08 | Haunted Wasteland | ✓ |
09 | Mirage Maintenance | ✓ |
10 | Pipe Maze | ✓ |
11 | Cosmic Expansion | ✓ |
12 | Hot Springs | ✓ |
13 | Point of Incidence | ✓ |
14 | Parabolic Reflector Dish | ✓ |
15 | Lens Library | ✓ |
16 | The Floor Will Be Lava | ✓ |
17 | Clumsy Crucible | ✓ |
18 | Lavaduct Lagoon | ✓ |
19 | Aplenty | ✓ |
20 | Pulse Propagation | ✓ |
21 | Step Counter | ✓ |
22 | Sand Slabs | ✓ |
23 | A Long Walk | ✓ |
24 | Never Tell Me The Odds | ✓ |
25 | Snowverload | ✓ |