My implementations of the Advent of Code puzzles.
My answers are calculated using Github Actions. Microsoft robots kneel before my code and execute their orders. After the robots finish their duties—like the good robots that they are—they write a report in a human-friendly format, Markdown—the lingua franca of the Github Kingdom. After all, it is US, humans, who want to understand what the hell happened in the field.
In particular, their orders are:
- Pick an
org
formatted document. - Fill (compute) the blanks with each battle outcome (Day in the Advent Code. calendar).
- Render the report using Markdown.
Sample answers can be found below behind a strong layer of HTML+Markdown magic kindly executed by the generous Microsoft robot army.
Execute the following to develop and test my repository.
pip install -r *.txt
pip install -Ue .
Day 1
python3 aoc/day_01.py
Executing for sample=['0', '3', '2', '4']
Depth increments: 2
Day 2
python3 aoc/day_02.py
Executing for instructions=['forward 2', 'down 3', 'up 2'] version='v1'
Position and depth = (2, 1)
Executing for instructions=['forward 2', 'down 3', 'up 2'] version='v2'
Position and depth = (2, 0, 1)
Day 3
clojure -X day-03/run
[part-1] Answer = 198
[part-2] Answer = 230