Fix alignment issues when printing "Done"

This commit is contained in:
Stone_Red
2023-05-05 20:00:15 +02:00
parent 9d430597e1
commit 5557666393
+2 -1
View File
@@ -20,10 +20,11 @@ try
Console.Clear(); Console.Clear();
} }
List<DfsNode> solution = solver.Solve(startNode, maze, GraphicsMode.Colored); List<DfsNode> solution = solver.Solve(startNode, maze, GraphicsMode.None);
printer.PrintColored(maze, solution, redrawAll: true); printer.PrintColored(maze, solution, redrawAll: true);
Console.SetCursorPosition(0, maze.GetLength(0));
ConsoleExt.WriteLine("Done", ConsoleColor.Green); ConsoleExt.WriteLine("Done", ConsoleColor.Green);
} }
catch (MazeException e) catch (MazeException e)