Solutions to Advent of Code (AOC). Single repo for solutions in
- Python
- Rust
- Haskell
TODO: Migrate solutions scattered in other repos.
This project provides the aoc
CLI utility.
- To build the CLI, just run
make
. This requires the Rust toolchain. Theaoc
executable will be placed in the root directory. - Puzzle inputs differ by user. To download them, the CLI needs to be authenticated. Get your session cookie (see here for ideas on how to do it)
and save it to
./.token
.
To download a specific day's puzzle input (e.g. the first day of 2015):
./aoc get 2015 1
This will download the input and save it to ./input/y2015d1.txt
.
To download all puzzle inputs:
./aoc get --all
The download is incremental: if a file is already present, it will not be downloaded again.
For full instructions,
./aoc -h
To start working on a puzzle, use
./aoc start [LANG] [YEAR] [DAY]
This downloads the puzzle input if necessary, and creates a template following the conventions of the language subproject.
Supported languages: Python, Rust.