Skip to content

Chris--B/advent-of-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code

Advent of Code is an advent calendar where each day involves a small coding puzzle. This repo contains my solutions for Advent of Code puzzles over the years.

Some of these puzzles are incomplete, missing, or wrong. Some of the code here horrifies me, and some of it I'm quite proud of. It's a bit of a zoo.

For more information about this annual event, see it's website:

Puzzle Links over the years

Info

All solutions here use the cargo-aoc framework for running and benchmarking the puzzles. To get started using it, consult it's README in its repo here.

I use cargo-aoc 0.3.0 installed locally. There may be issues if you mis-match versions of the library (downloaded by Cargo during builds) and the runner (installed with cargo install).

Building

Each year lives in isolation and must be built from its directory.

$ cd 2021
$ cargo test
$ cargo aoc
$ cargo aoc -d1 # Run just Day1

I save my input files in the repo to keep things simple. If you would like to test my code with your input, you can overwrite them in-place.

$ cd 2021
$ cargo aoc input -d1
$ cargo aoc -d1

cargo-aoc defaults to the current year when fetching input, so keep that in mind when running older puzzles

$ cd 2018
$ cargo aoc input -y 2018 d3
$ cargo aoc -d5

Benchmarking

Please consult cargo-aoc for details on using its benchmarking feature. Please let me know if there are any issues.

About

Solutions in Rust for https://adventofcode.com/

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published