diff --git a/2016/Cargo.toml b/2016/Cargo.toml index 61e74da..8bfd723 100644 --- a/2016/Cargo.toml +++ b/2016/Cargo.toml @@ -6,3 +6,4 @@ authors = ["Bert Peters "] [dependencies] clap = "2.32" regex = "1.0" +itertools = "0.7.8" diff --git a/2016/src/main.rs b/2016/src/main.rs index 22a3674..5d34b92 100644 --- a/2016/src/main.rs +++ b/2016/src/main.rs @@ -1,5 +1,6 @@ extern crate clap; extern crate regex; +extern crate itertools; use clap::{Arg, App}; use std::fs; use std::io; @@ -7,11 +8,13 @@ use std::io; pub mod common; pub mod day1; pub mod day15; +pub mod day16; fn get_impl(day: i32) -> Box { match day { 1 => { Box::new(day1::Day1::new()) } 15 => { Box::new(day15::Day15::new()) } + 16 => { Box::new(day16::Day16::new()) } _ => { panic!("Unimplemented day {}", day) }