day 14: while not wrong, +2 is better than +3

This commit is contained in:
2022-12-14 19:51:39 +01:00
parent 7303f15e2d
commit 1e0583e538

View File

@@ -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