Day 9 boilerplate

This commit is contained in:
Max Nuding 2022-12-08 18:23:45 +00:00
parent d23fee8c4b
commit a3d1031b05
3 changed files with 22 additions and 0 deletions

0
input/09.txt Normal file
View File

18
src/day09/mod.rs Normal file
View File

@ -0,0 +1,18 @@
use crate::read;
use itertools::Itertools;
pub fn run() {
let input = read("08");
let lines = input.lines();
for line in lines {}
#[cfg(feature = "part1")]
{
println!("Day 9, Part 01: {}", "TODO");
}
#[cfg(feature = "part2")]
{
println!("Day 9, Part 02: {}", "TODO");
}
}

View File

@ -9,6 +9,7 @@ mod day05;
mod day06;
mod day07;
mod day08;
mod day09;
fn main() {
let today = Local::now().day();
@ -37,6 +38,9 @@ fn main() {
if cfg!(feature = "day08") || (cfg!(feature = "today") && today == 8) {
day08::run();
}
if cfg!(feature = "day09") || (cfg!(feature = "today") && today == 9) {
day09::run();
}
println!("Finished, time taken: {:?}", now.elapsed())
}