This is a development program meant to be used for quick running and creating of advent days.
While this is meant to be used primarily for me and for quick development; I am going to change it to be separate and run the days separately as opposed to having the compilation of the program depend on each day compiling.
If you would like to use this the easiest way is to do the following steps.
- Install rust at Rust-Lang.
- Delete all files and folders in the
advent-of-code/src/days/
folder. - Delete all files in the
advent-of-code/src/inputs/
folder. - Create a new day using the day and year of the puzzle you wish to do.
- Grab the puzzle input and optionally sample input from the Advent of Code.
- Place inputs into the respected file in
advent-of-code/src/inputs/
. - Run day using day and year, tossing in
true
if you wish to use sample input instead.
Depending on if you are running this through cargo or through the exe the command is the same but here they are anyways, just replace [day] and [year] with the actual values you desire.
Files created will be the day's rust file and two inputs, the actual input and the sample if you wish to use that. These are your puzzle input files.
cargo run new [day] [year]
advent-of-code.exe new [day] [year]
Same as before but with the ability to run using either the sample file or the actual file.
{sample}
is an optional parameter, default: false
.
cargo run run [day] [year] {sample}
advent-of-code.exe run [day] [year] {sample}
This is still very much a WIP, I am in the process of converting old years and days to this format and I wish to continue converting the program to be independent from my puzzles.