This is my implementation of the puzzles found at adventofcode.com.
No explicit goal.
No explicit goal.
No explicit goal.
Goal: all solutions must be solved in under 1 second.
This sometimes resulted in resorting to C++ for certain puzzles, so the solutions aren't 100% in Python anymore.
Goal: all solutions must be written in Rust.
This means that all solutions written since 2021 are in Rust (so not just all puzzles from 2021, but also some of the older years that were solved in 2021).
You'll need Python 3, poetry and Rust.
The Python dependencies are specified in pyproject.toml, install them like this:
poetry installThe Rust dependencies are specified in rust/Cargo.toml, they are installed automatically if you run the above command.
The following command allows you to solve a certain puzzle:
poetry run solve_puzzle --year 2017 --day 1Or just solve all puzzles of that year:
poetry run solve_puzzle --year 2017Or solve all puzzles:
poetry run solve_puzzleIf new puzzles are released, they can be downloaded using the following command:
poetry run download_puzzle --session-cookie="..." --year 2021The session cookie refers to the session HTTP cookie being set on adventofcode.com.