bugfix: count off by one, thought ^ was left in the map, but it gets

replaced by X
This commit is contained in:
Keenan Tims 2024-12-11 18:59:58 -08:00
parent de535303d4
commit 4c14c6092e
Signed by: ktims
GPG Key ID: 11230674D69038D4

View File

@ -164,7 +164,7 @@ pub fn part1(map: &Map) -> u64 {
let mut map = map.clone();
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