Advent of Code 2023
These are my solutions to puzzles from this year's Advent of Code.
Usage
- Fetch your session cookie that can be obtained by logging in to Advent of Code.
- Build the
get-inputs
executable that will fetch the inputs for the individual days automatically to a./data/
directory.cargo build --release --bin get-inputs --features=inputs
- Set the
AOC_SESSION
environment variable to that value and invoke theget-inputs
executable to download the inputs for the days to./data/<day>.in
:AOC_SESSION="<your-cookie-goes-here>" ./target/release/get-inputs
- Then run the individual executables with
cargo
. For example,cargo run --release --bin day-05
will print the solutions for day 05 corresponding to the input indata/05.in
.