sstadick / aoc-2023

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AOC 2022

This repo contains solutions for the 2022 Advent of Code in Rust.

Running solutions

cargo run --bin aoc -- day0 --input test.txt

Adding a new day

aoc/src/commands/day0.rs is a template for all coming days create quick and easy subcommands for running solutions.

Copy the template to the new day:

cargo xtask new-day -n day<?>

Make the new day public in the aoc/src/commands/mod.rs

Add the new day to the SubCommand struct in aoc/src/main.rs

Some days will have multiple parts, from experience you should create a new subcommand for the second part, EX day2b.rs, and modify from there instead of changing your answer for part one as some of the next days may rely on day1 part a.

About


Languages

Language:Rust 100.0%