From a3d1031b05f3cee44f00bd4f094964b93953f5d1 Mon Sep 17 00:00:00 2001 From: Max Nuding Date: Thu, 8 Dec 2022 18:23:45 +0000 Subject: [PATCH] Day 9 boilerplate --- input/09.txt | 0 src/day09/mod.rs | 18 ++++++++++++++++++ src/main.rs | 4 ++++ 3 files changed, 22 insertions(+) create mode 100644 input/09.txt create mode 100644 src/day09/mod.rs diff --git a/input/09.txt b/input/09.txt new file mode 100644 index 0000000..e69de29 diff --git a/src/day09/mod.rs b/src/day09/mod.rs new file mode 100644 index 0000000..446eb6b --- /dev/null +++ b/src/day09/mod.rs @@ -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"); + } +} diff --git a/src/main.rs b/src/main.rs index 9738ba8..715bdf7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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()) }