Skip to content

timptner/advent-of-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code

My personal solutions for Advent of Code (AoC), written in Rust.

Authentication

To use any of the manager commands you need to be authenticated. Authentication is accomplished via OAtuh session cookies, which are valid for about a month. Login to AoC with a browser of your choice and extract the session cookie afterwards. Set the value of your session cookie as env var SESSION_TOKEN. (You can use a .env file in your working directory to persist your token.)

Usage

Generate empty template for a new day.

cargo run --bin cargo-generate-day -- <year> <day>

Retrieve personal input.

cargo run input <year> <day>

Solve a puzzle and print the solution:

cargo run solve <year> <day>

You can test all solutions against the default input/answer combinations.

cargo test

Submit answer to puzzle platform.

cargo run answer <year> <day> <level> <value>

About

My solutions to AoC, written in Rust

Topics

Resources

Stars

Watchers

Forks

Languages