summaryrefslogtreecommitdiff
path: root/2018/src/main.rs
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2018-12-17 13:38:27 +0100
committertomsmeding <tom.smeding@gmail.com>2018-12-17 13:56:47 +0100
commit0d3f096f6e9c01203031f5a2a0ce066bdb61b3be (patch)
treefeb4cc5d32218b0d3dfe69bd7a01910e961712e5 /2018/src/main.rs
parent0195c76570a61331c72480c0053dadc2f68b08d9 (diff)
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.
Diffstat (limited to '2018/src/main.rs')
-rw-r--r--2018/src/main.rs4
1 files changed, 3 insertions, 1 deletions
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<T: BufRead>(day: i32, reader: T) -> io::Result<(String, String)> {
match day {
@@ -42,6 +43,7 @@ fn day_switch<T: BufRead>(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"))
}
}