Here we go again... This is my testing system and (eventually) solutions for AOC 2023. Doing everything in Rust for a 3rd year in a row because why not?
cargo run [day]
(If no day is provided during competition time, the current date is used)
To run any extra stuff for a particular day you can use cargo run extra [day]
. I am using this for vizualizations but really anything could be done.
Each day gets a src/day##.rs file with the definitions shown in src/template.rs and have corresponding lines in src/main.rs uncommented. For extras, a public extra function needs to be defined for the particular day and the function needs to be added to the extras match statement in src/main.rs.
If no input is found in input/day##.txt, the input for the selected day will be downloaded. There must be an AOC token placed in the aoc_token file or in the AOC_TOKEN environment vairable.
- Rust Toolchain
- Will to live (optional)
Automatic answer submittal right from the CLI! (didn't happen last year so we'll see)