Repository for the Advent of Code Challenge, solved in Python3. Every year has a subfolder, where the the solution is located.
. . . + . . .
. . . # . .
. . ### . . .
. . "#:. .:##"##:. .:#" . .
. . "####"###"####" .
. "#:. .:#"###"#:. .:#" . . .
. "#########"#########" . .
. "#:. "####"###"####" .:#" . .
. . "#######""##"##""#######" .
."##"#####"#####"##" . .
. "#:. ... .:##"###"###"##:. ... .:#" .
. "#######"##"#####"##"#######" . .
. . "#####""#######""#####" . .
. " 000 " . .
. . . 000 . . .
.. .. ..................O000O........................ ...... ...
Dependencies are managed with uv. Run uv sync once after cloning to create the .venv.
Run everything through uv run (e.g. uv run python solve.py 1), or activate the env with source .venv/bin/activate.
Add new packages with uv add [package].
Initialize a day by running python build.py [day] [optional: year, default=2026].
A typical solution is a file containing the funcitons part_1 and part_2, returning
respectively the solution to the given day.
Add testcases into the examples.json files, and test them with pytest.
Once the testcases run without problem,
submit with python solve.py [day] [optional: year, default=2026]