Boilerplate day 12

This commit is contained in:
Max Nuding 2022-12-11 15:57:49 +00:00
parent 052d21f132
commit 8a2aa96881
2 changed files with 24 additions and 0 deletions

20
src/day12/mod.rs Normal file
View File

@ -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");
}
}

View File

@ -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())
}