My solutions for Advent of Code.
2021 in Rust. Previous years:
It's not pretty, but sometimes it works(?):
Session key: To automatically download the inputs for a specific day, you'll need to have your AofC session key saved somewhere. To find it, log in on https://adventofcode.com, and use the developer tools to look at the cookies to find your session key. Then save that key to a file called .aoc in the root of this repo, or as the AOC_SESSION_KEY environment variable.
Downloading data: Once you have your session key set, download the inputs, run the tests, and run with your inputs using:
makeSetting up a new day: To copy the template and boilerplate for a new day, run:
make newTesting the code: To run the unit tests, execute:
make testRunning the code: To run the solver on your inputs, you can just run:
make run