My journey through Advent of Code in Rust. This repository contains my solutions and the tools I use to manage them.
- Solutions are organized by year and day
- Inputs are stored in
src/inputs/y20xx/dayxx.txt
(not comitted to the repository, as they are unique to each user and not meant to be shared) - Unit tests use the example inputs provided in each puzzle
I use aoc-cli to manage puzzle inputs and submissions.
You can install it with
cargo install aoc-cli
Then, check the aoc-cli
repo for how to set up your session variable.
Two helper scripts are provided:
Downloads puzzle input and description:
./fetch.sh 2023 1 # Downloads day 1 of year 2023
Runs solution and submits answer:
./solve.sh 2023 1 1 # Submits part 1 of day 1, 2023
- Day 1 ⭐⭐: Calorie Counting
- Day 2 ⭐⭐: Rock Paper Scissors
- Day 3 ⭐⭐: Rucksack Reorganization
- Day 4 ⭐⭐: Camp Cleanup
- Day 5 ⭐⭐: Supply Stacks
- Day 6 ⭐⭐: Tuning Trouble
- Day 7 ⭐ : No Space Left On Device
- Day 1 ⭐⭐: Trebuchet?!
- Day 2 ⭐⭐: Cube Conundrum
- Day 3 ⭐⭐: Gear Ratios
- Day 4 ⭐⭐: Scratchcards
- Day 1 ⭐⭐: Historian Hysteria
- Day 2 ⭐⭐: Red-Nosed Reports
- Day 3 ⭐⭐: Mull It Over
- Day 4 ⭐⭐: Ceres Search
- Day 5 ⭐⭐: Print Queue
# Run a specific solution
cargo run -- 2024 1 1 # Runs year 2024, day 1, part 1
# Run tests
cargo test