From 63e18009c76034b353e6f17214591a053fea06e3 Mon Sep 17 00:00:00 2001 From: DariusTFox24 Date: Wed, 1 Dec 2021 23:45:08 +0200 Subject: [PATCH] Working labyrinth display --- Program.cs | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/Program.cs b/Program.cs index da607eb..f6dfe88 100644 --- a/Program.cs +++ b/Program.cs @@ -1,6 +1,6 @@ using IdaStar; -string[] labyrinthIN = System.IO.File.ReadAllLines(@"C:\UNI\AI\IDAstar\labyrinthOUT.txt"); +string[] labyrinthIN = System.IO.File.ReadAllLines(@"C:\UNI\AI\IDAstar\labyrinth.txt"); System.Console.WriteLine("The input labyrinth: "); @@ -19,17 +19,18 @@ algoBoard.AlgorithmStep += (_) => { if(done){ System.Console.WriteLine("The solved labyrinth is:"); }else if(step/2 == 0) { - System.Console.WriteLine("Computing [• ]"); + System.Console.WriteLine("Computing [· ]"); }else { - System.Console.WriteLine("Computing [ •]"); + System.Console.WriteLine("Computing [ ·]"); } //top border Console.BackgroundColor = border; for (var i=0; i { //left border Console.BackgroundColor = border; - Console.Write("|||"); + Console.Write(" "); Console.ResetColor(); //labyrinth line @@ -46,16 +47,19 @@ algoBoard.AlgorithmStep += (_) => { //right border Console.BackgroundColor = border; - Console.Write("|||"); + Console.Write(" "); Console.ResetColor(); + + Console.WriteLine(); } //bottom border Console.BackgroundColor = border; for (var i=0; i"); + Console.Write("<·>"); break; } @@ -91,7 +95,7 @@ void FormattedLabRow(string line) { case 'p': { Console.BackgroundColor = ConsoleColor.Blue; - Console.Write(" • "); + Console.Write(" · "); break; } @@ -99,5 +103,4 @@ void FormattedLabRow(string line) { } } Console.ResetColor(); - Console.WriteLine(); } \ No newline at end of file