From 7b45a4748c0088351296bf9ce64cc9af2fdcda59 Mon Sep 17 00:00:00 2001 From: "max.nuding" Date: Mon, 5 Dec 2022 09:03:12 +0100 Subject: [PATCH] Boilerplate day 06 --- src/day06/mod.rs | 18 ++++++++++++++++++ src/main.rs | 4 ++++ 2 files changed, 22 insertions(+) create mode 100644 src/day06/mod.rs diff --git a/src/day06/mod.rs b/src/day06/mod.rs new file mode 100644 index 0000000..fa34f36 --- /dev/null +++ b/src/day06/mod.rs @@ -0,0 +1,18 @@ +use crate::read; + +pub fn run() { + let input = read("06"); + + //let lines = input.split_once("\n\n").unwrap(); + //let lines = input.lines(); + + #[cfg(feature = "part1")] + { + println!("Day 6, Part 01: {}", "TODO"); + } + + #[cfg(feature = "part2")] + { + println!("Day 6, Part 02: {}", "TODO"); + } +} diff --git a/src/main.rs b/src/main.rs index 76d8f69..7b04cc4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -6,6 +6,7 @@ mod day02; mod day03; mod day04; mod day05; +mod day06; fn main() { let today = Local::now().day(); @@ -25,6 +26,9 @@ fn main() { if cfg!(feature = "day05") || (cfg!(feature = "today") && today == 5) { day05::run(); } + if cfg!(feature = "day06") || (cfg!(feature = "today") && today == 6) { + day06::run(); + } println!("Finished, time taken: {:?}", now.elapsed()) }