summary refs log tree commit diff homepage
path: root/src
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2016-12-18 19:02:41 -0500
committerJune McEnroe <june@causal.agency>2020-11-22 00:14:25 -0500
commitd2727bf30856203c14165bc3a5b3797bd410c09c (patch)
tree9cbfa83bfba11559b19acbd9ee7c3bea673e223f /src
parentFuck day 11 (diff)
downloadaoc-d2727bf30856203c14165bc3a5b3797bd410c09c.tar.gz
aoc-d2727bf30856203c14165bc3a5b3797bd410c09c.zip
Fuck day 11 part 2
Diffstat (limited to '')
-rw-r--r--src/bin/day11.rs15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/bin/day11.rs b/src/bin/day11.rs
index ac37592..c033766 100644
--- a/src/bin/day11.rs
+++ b/src/bin/day11.rs
@@ -161,7 +161,20 @@ fn main() {
     floors[2].objects.insert(Object::Microchip(RUTHENIUM));
     floors[2].objects.insert(Object::Microchip(PLUTONIUM));
 
-    println!("Part 1: {}", solve(floors));
+    println!("Part 1: {}", solve(floors.clone()));
+
+
+    // An elerium generator.
+    // An elerium-compatible microchip.
+    // A dilithium generator.
+    // A dilithium-compatible microchip.
+    const ELERIUM: u8 = 5;
+    const DILITHIUM: u8 = 6;
+    floors[0].objects.insert(Object::Generator(ELERIUM));
+    floors[0].objects.insert(Object::Microchip(ELERIUM));
+    floors[0].objects.insert(Object::Generator(DILITHIUM));
+    floors[0].objects.insert(Object::Microchip(DILITHIUM));
+    println!("Part 2: {}", solve(floors));
 }
 
 #[test]