From 1e0583e538084706f7b1d10f114dff9a14e6670b Mon Sep 17 00:00:00 2001 From: Jur van den Berg Date: Wed, 14 Dec 2022 19:51:39 +0100 Subject: [PATCH] day 14: while not wrong, +2 is better than +3 --- src/day14.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/day14.rs b/src/day14.rs index aefe5de..5ccb46d 100644 --- a/src/day14.rs +++ b/src/day14.rs @@ -25,7 +25,7 @@ pub fn process_part_2(input: &str) -> u32 { // The final sand actually counts let mut count = 1; - while map.drop_sand(500, 0, map.max_y + 3) != Some((500, 0)) { + while map.drop_sand(500, 0, map.max_y + 2) != Some((500, 0)) { count += 1; } count