Solutions from the various years of AdventOfCode in Rust as a tiny CLI application.
| Year | Progress | Days |
|---|---|---|
| 2015 | 60 % | 15 / 25 |
| 2016 | 24 % | 6 / 25 |
| 2017 | 0 % | 0 / 25 |
| 2018 | 8 % | 2 / 25 |
| 2020 | 64 % | 16 / 25 |
Each year has it's own module and in that each day is a submodule, so each day is a separate file. The day modules should in generally not know each other, they are meant to be isolated.
For convenience each day has a main(input: &str) function as a starting point.
This main-function is supposed to calculate the solution to the given input and output them.
Usually it's a good idea to write tests according to the examples provided by the puzzle itself...
The idea is to get to the solution mainly with basic Rust and std, so in general additional crates should be added only if really necessary.
Currently, the only packages used are:
structopt(to not worry about the CLI stuff)regex(since many puzzles require parsing input)cryptoDay 4 in 2015 required md5 hashingitertool(Provides neat functional stuff for iterators likeunique(),sorted()whichstddoesn't provide)