From 830c45097316acd70c1ec2ab7673d38599078df0 Mon Sep 17 00:00:00 2001 From: Adrian Groh Date: Sat, 14 Dec 2024 12:33:37 +0100 Subject: [PATCH] Fix part2 not working on some inputs --- day14/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/day14/src/main.rs b/day14/src/main.rs index 94824ea..9fecde9 100644 --- a/day14/src/main.rs +++ b/day14/src/main.rs @@ -72,7 +72,7 @@ fn print_map(robots: &[Robot], dimensions: &IVec2) -> String { } fn has_tree(robots: &[Robot]) -> bool { - let check: Vec<_> = (0..8).map(|i| IVec2::new(i, 0)).collect(); + let check: Vec<_> = (0..16).map(|i| IVec2::new(i, 0)).collect(); robots.iter().any(|p| { check .iter()