Skip to content

dfm/adventofcode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My solutions for Advent of Code.

2021 in Rust. Previous years:

It's not pretty, but sometimes it works(?):

Tests

Usage notes

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:

make

Setting up a new day: To copy the template and boilerplate for a new day, run:

make new

Testing the code: To run the unit tests, execute:

make test

Running the code: To run the solver on your inputs, you can just run:

make run