bugfix: count off by one, thought ^ was left in the map, but it gets
replaced by X
This commit is contained in:
parent
de535303d4
commit
4c14c6092e
@ -164,7 +164,7 @@ pub fn part1(map: &Map) -> u64 {
|
|||||||
let mut map = map.clone();
|
let mut map = map.clone();
|
||||||
map.run_guard::<false>();
|
map.run_guard::<false>();
|
||||||
|
|
||||||
map.grid.count(&b'X') as u64 + 1 // 'X' path positions + 1 starting position
|
map.grid.count(&b'X') as u64
|
||||||
}
|
}
|
||||||
|
|
||||||
// PROBLEM 2 solution
|
// PROBLEM 2 solution
|
||||||
|
Loading…
x
Reference in New Issue
Block a user