changed display characters

This commit is contained in:
JOLIMAITRE Matthieu 2022-05-30 01:03:29 +03:00
parent f5e09dd59e
commit ee59d342a1

View file

@ -131,14 +131,14 @@ where
fn draw(maze: &Maze, tried: &HashSet<Pos>, tick: usize, path: &Vec<Pos>) { fn draw(maze: &Maze, tried: &HashSet<Pos>, tick: usize, path: &Vec<Pos>) {
let mut overlay = HashMap::new(); let mut overlay = HashMap::new();
for position in tried { for position in tried {
overlay.insert(*position, 'T');
}
for position in path {
overlay.insert(*position, '#'); overlay.insert(*position, '#');
} }
overlay.insert(*path.last().unwrap(), 'G'); for position in path {
overlay.insert(*position, 'P');
}
overlay.insert(*path.last().unwrap(), 'x');
let text = maze.display(Some(overlay)); let text = maze.display(Some(overlay));