Skip to content

Lysander6/advent-of-code-2022

Repository files navigation

Advent of Code 2022

Prerequisites

Setup

asdf install

Adding package for a new challenge

  1. Run cookiecutter .scaffold/day
  2. Add "day_NN" to members array in Cargo.toml
  3. Run cargo check to trigger Cargo.lock update

Documentation

To compile and display documentation run:

cargo doc --open

Day 1

cargo run -p day_01 -- ./day_01/input.txt

Day 2

cargo run -p day_02 -- ./day_02/input.txt

Day 3

cargo run -p day_03 -- ./day_03/input.txt

Day 4

cargo run -p day_04 -- ./day_04/input.txt

Day 5

cargo run -p day_05 -- ./day_05/input.txt

Day 6

cargo run -p day_06 -- ./day_06/input.txt

Day 7

cargo run -p day_07 -- ./day_07/input.txt

Day 8

cargo run -p day_08 -- ./day_08/input.txt