From 0d3f096f6e9c01203031f5a2a0ce066bdb61b3be Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Mon, 17 Dec 2018 13:38:27 +0100 Subject: Day 17 This was a really fun one! Enjoyed making the simulation that is really a complicated kind of automaton, and enjoyed looking at the automaton doing its thing in the terminal. --- 2018/src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '2018/src/main.rs') diff --git a/2018/src/main.rs b/2018/src/main.rs index 4bc8d50..21a77df 100644 --- a/2018/src/main.rs +++ b/2018/src/main.rs @@ -21,8 +21,9 @@ mod day13; mod day14; mod day15; mod day16; +mod day17; -static NUM_DAYS: i32 = 16; +static NUM_DAYS: i32 = 17; fn day_switch(day: i32, reader: T) -> io::Result<(String, String)> { match day { @@ -42,6 +43,7 @@ fn day_switch(day: i32, reader: T) -> io::Result<(String, String)> { 14 => day14::main(reader), 15 => day15::main(reader), 16 => day16::main(reader), + 17 => day17::main(reader), _ => Err(Error::new(ErrorKind::Other, "Invalid day")) } } -- cgit v1.2.3-54-g00ecf