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/bin') 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 1b68a9de10cded6c3ca96a54eae106f1'>tree commit diff
path: root/bin/man1/scheme.1 (unfollow)
Commit message (Expand)Author
2022-06-05FIRST SHOW IN 2.5 YEARS BABEY!!!June McEnroe
2022-06-03Set line number on File linesJune McEnroe
2022-06-03Stop polling stdin after EOFJune McEnroe
2022-06-02Set TABSIZE=4June McEnroe
2022-06-02Do basic match highlightingJune McEnroe
2022-06-02Clean up parsing a littleJune McEnroe
2022-06-02Don't duplicate path stringJune McEnroe
2022-06-02Use stderr instead of /dev/tty, realloc buffer if lines too longJune McEnroe
2022-06-02Add initial working version of qfJune McEnroe
2022-05-29Set prompt for okshJune McEnroe