cargo scaffold <day> [-d|--download]
cargo download <day>
cargo solve <day>
During an Advent of Code event, the day
parameter can be omitted and will default to the current day.
The event year in read from the AOC_YEAR
environment variable (see .cargo/config.toml
). It can also be changed on the command line:
cargo run --release --quiet 2021 [scaffold|solve|...]
The aoc-client crate is used underneath to download input files. If found, it is fed with the contents of the .adventofcode.session
file at the root of the repo.
See the aoc-cli documentation for other authentication methods.
pip install pre-commit
pre-commit install
For VS Code, install the Editor Config extension.
This repository is licensed under the MIT license. Even though you should try to solve AoC puzzles on your own, feel free to use this as you please.
However, the puzzles and input files found and downloaded at adventofcode.com are under copyright. See https://adventofcode.com/about#legal.