From 57debf1ab2859aab8e1a231772cd13baa6e34e73 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Fri, 16 Dec 2022 09:20:22 -0600 Subject: [PATCH] Day 14 part 2 Sat down to work, realized immediately somehow my floor was off by one. Off by ones in the morning. Good times. --- 2022/rust/src/day14.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2022/rust/src/day14.rs b/2022/rust/src/day14.rs index 1c3e75b..acada98 100644 --- a/2022/rust/src/day14.rs +++ b/2022/rust/src/day14.rs @@ -87,7 +87,7 @@ fn part2(input: &mut Input) -> Answer { println!("{}", input.low_point); let mut result = 0; { - let y = input.low_point + 1; + let y = input.low_point + 2; for x in -1000..1000 { input.map.insert((x, y), '#'); }