Function part1

Source
pub fn part1(grid: &Grid<u8>) -> usize
Expand description

Count distinct positions in the guard’s path, which will eventually leave the grid.