day 14: while not wrong, +2 is better than +3
This commit is contained in:
@@ -25,7 +25,7 @@ pub fn process_part_2(input: &str) -> u32 {
|
|||||||
// The final sand actually counts
|
// The final sand actually counts
|
||||||
let mut count = 1;
|
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 += 1;
|
||||||
}
|
}
|
||||||
count
|
count
|
||||||
|
|||||||
Reference in New Issue
Block a user