grid: use coord2d more consistently

This commit is contained in:
2024-12-21 21:01:06 -08:00
parent 13f61e3a2b
commit 02fc154547
6 changed files with 37 additions and 15 deletions

View File

@ -104,7 +104,7 @@ impl<T: BufRead> From<T> for Map {
let guard_facing = FacingDirection::Up;
Self {
grid,
guard_pos,
guard_pos: guard_pos.into(),
guard_facing,
visited_from,
path: Vec::new(),