changed display characters
This commit is contained in:
parent
f5e09dd59e
commit
ee59d342a1
1 changed files with 5 additions and 5 deletions
|
@ -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));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue