From ee59d342a10996f481f03e67ddb83c2d5d6cabad Mon Sep 17 00:00:00 2001 From: JOLIMAITRE Matthieu Date: Mon, 30 May 2022 01:03:29 +0300 Subject: [PATCH] changed display characters --- src/executor.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/executor.rs b/src/executor.rs index 14d9173..6c88403 100644 --- a/src/executor.rs +++ b/src/executor.rs @@ -131,14 +131,14 @@ where fn draw(maze: &Maze, tried: &HashSet, tick: usize, path: &Vec) { let mut overlay = HashMap::new(); for position in tried { - overlay.insert(*position, 'T'); - } - - for position in path { 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));