Skip to content

Obito-git/advent_of_code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code

Rust solutions for Advent of Code.

Creating a New Challenge

Run the helper script to scaffold a new day:

./new_day.sh

The script will prompt you for the year and day, then create:

  • A Rust source file with a basic template (src/bin/y{year}_d{day}.rs)
  • An empty input file (inputs/y{year}_d{day}.txt)

After creation, paste your puzzle input into the generated .txt file.

Running Solutions

echo "inputs/y2015_d01.txt" | cargo run --bin y2015_d01

Running Tests

cargo test --bin y2015_d01

Structure

  • src/lib.rs - shared helpers
  • src/bin/y{year}_d{day}.rs - solutions
  • inputs/y{year}_d{day}.txt - puzzle inputs
  • new_day.sh - script to create new challenge files

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published