|
|
@ -27,7 +27,7 @@ algoBoard.AlgorithmStep += (_, threshold) => { |
|
|
|
|
|
|
|
|
|
|
|
//top border |
|
|
|
//top border |
|
|
|
Console.BackgroundColor = border; |
|
|
|
Console.BackgroundColor = border; |
|
|
|
for (var i=0; i<algoBoard.Board[0].Count()+2; i++){ |
|
|
|
for (var i=0; i< algoBoard.Board[0].Count + 2; i++){ |
|
|
|
Console.Write(" "); |
|
|
|
Console.Write(" "); |
|
|
|
} |
|
|
|
} |
|
|
|
Console.ResetColor(); |
|
|
|
Console.ResetColor(); |
|
|
@ -56,7 +56,7 @@ algoBoard.AlgorithmStep += (_, threshold) => { |
|
|
|
|
|
|
|
|
|
|
|
//bottom border |
|
|
|
//bottom border |
|
|
|
Console.BackgroundColor = border; |
|
|
|
Console.BackgroundColor = border; |
|
|
|
for (var i=0; i<algoBoard.Board[0].Count()+2; i++){ |
|
|
|
for (var i=0; i< algoBoard.Board[0].Count + 2; i++){ |
|
|
|
Console.Write(" "); |
|
|
|
Console.Write(" "); |
|
|
|
} |
|
|
|
} |
|
|
|
Console.ResetColor(); |
|
|
|
Console.ResetColor(); |
|
|
@ -67,8 +67,7 @@ algoBoard.AlgorithmStep += (_, threshold) => { |
|
|
|
|
|
|
|
|
|
|
|
algoBoard.RunIdaStar(); |
|
|
|
algoBoard.RunIdaStar(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static void FormattedLabRow(string line) { |
|
|
|
void FormattedLabRow(string line) { |
|
|
|
|
|
|
|
char[] characters = line.ToCharArray(); |
|
|
|
char[] characters = line.ToCharArray(); |
|
|
|
foreach (char c in characters) { |
|
|
|
foreach (char c in characters) { |
|
|
|
switch ( c ) { |
|
|
|
switch ( c ) { |
|
|
|