From 24e7f1ebfac8a1a00d5bec185234c6374009a54c Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Sun, 18 Dec 2016 19:02:41 -0500 Subject: Fuck day 11 part 2 --- src/bin/day11.rs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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] -- cgit 1.4.1 g=1&follow=1'>log tree commit diff
path: root/bin/jrp.c (unfollow)
Commit message (Collapse)Author
2018-02-04Set up Makefile for gfxx-cocoa or gfxx-fbJune McEnroe
2018-02-04Avoid doing excessive work in gfxxJune McEnroe
By stopping when the next column would be off the edge of the buffer.
2018-02-04Handle window resizing in gfcocoaJune McEnroe
2018-02-04Set cinoptionsJune McEnroe
2018-02-04Tweak colorscheme moreJune McEnroe
2018-02-04Color MatchParen DarkYellowJune McEnroe
White is not obvious enough.
2018-02-04Add palette sampling to gfxxJune McEnroe
2018-02-04Add 4-bit RGB to gfxxJune McEnroe
Replace default palette with alternating black and white.
2018-02-04Add Quit menu item to gfcocoaJune McEnroe
2018-02-04Switch back to sane Objective-C styleJune McEnroe
2018-02-04Quit gfcocoa when window closesJune McEnroe
2018-02-03Apparently this is how people write Objective-CJune McEnroe