From 8a2aa96881cb6b57a119b1b5769f24f0ba479f79 Mon Sep 17 00:00:00 2001 From: Max Nuding Date: Sun, 11 Dec 2022 15:57:49 +0000 Subject: [PATCH] Boilerplate day 12 --- src/day12/mod.rs | 20 ++++++++++++++++++++ src/main.rs | 4 ++++ 2 files changed, 24 insertions(+) create mode 100644 src/day12/mod.rs diff --git a/src/day12/mod.rs b/src/day12/mod.rs new file mode 100644 index 0000000..9fb021b --- /dev/null +++ b/src/day12/mod.rs @@ -0,0 +1,20 @@ +use crate::read; +use itertools::Itertools; + +//#[derive(Debug, PartialEq, Eq, Clone, Hash)] + +pub fn run() { + let input = read("12"); + let lines = input.lines(); + let lines = input.split("\n\n"); + + #[cfg(feature = "part1")] + { + println!("Day 12, Part 01: {}", "TODO"); + } + + #[cfg(feature = "part2")] + { + println!("Day 12, Part 02: {}", "TODO"); + } +} diff --git a/src/main.rs b/src/main.rs index efe2c81..305d2bd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -12,6 +12,7 @@ mod day08; mod day09; mod day10; mod day11; +mod day12; mod puter; fn main() { @@ -50,6 +51,9 @@ fn main() { if cfg!(feature = "day11") || (cfg!(feature = "today") && today == 11) { day11::run(); } + if cfg!(feature = "day12") || (cfg!(feature = "today") && today == 12) { + day12::run(); + } println!("Finished, time taken: {:?}", now.elapsed()) }