From 55576663939e8083cb4fdba4838d97745f3fe06e Mon Sep 17 00:00:00 2001 From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com> Date: Fri, 5 May 2023 20:00:15 +0200 Subject: [PATCH] Fix alignment issues when printing "Done" --- Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Program.cs b/Program.cs index b941c4c..c6586bc 100644 --- a/Program.cs +++ b/Program.cs @@ -20,10 +20,11 @@ try Console.Clear(); } - List solution = solver.Solve(startNode, maze, GraphicsMode.Colored); + List solution = solver.Solve(startNode, maze, GraphicsMode.None); printer.PrintColored(maze, solution, redrawAll: true); + Console.SetCursorPosition(0, maze.GetLength(0)); ConsoleExt.WriteLine("Done", ConsoleColor.Green); } catch (MazeException e)