From d2727bf30856203c14165bc3a5b3797bd410c09c Mon Sep 17 00:00:00 2001 From: June 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(-) (limited to 'src') 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 p/tree/LICENSE?id=106fe580f255d2f26b5e6d50fddaaa8e055aa756'>tree commit diff
path: root/LICENSE (unfollow)
Commit message (Expand)Author
2019-08-25Remove files from cards repoJune McEnroe
2019-04-04Mark card functions inlineJune McEnroe
2019-04-04Add listClearJune McEnroe
2019-04-03Tweak mouseButtonUp code a bitJune McEnroe
2019-04-03Check gameAvail on double-clickJune McEnroe
2019-04-02Select and move cards on mouse upJune McEnroe
2019-04-01Add idSkipJune McEnroe
2019-03-31Fix weird typoJune McEnroe
2019-03-30Add undo to freecellJune McEnroe
2019-03-29Replace path.h with asset.hJune McEnroe
2019-03-29Add king win faceJune McEnroe
2019-03-29Change king face directionJune McEnroe
2019-03-29Load king bitmaps in freecellJune McEnroe