Fix part2 not working on some inputs
This commit is contained in:
parent
a68e7f0f03
commit
830c450973
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user