mirror of
https://github.com/dancojocaru2000/ai-project-idastar.git
synced 2025-02-23 00:49:34 +02:00
Do not clear screen if showing only final result
This commit is contained in:
parent
2c74cde949
commit
024c45e5cd
1 changed files with 3 additions and 3 deletions
|
@ -37,7 +37,7 @@ if(printSteps) {
|
||||||
}
|
}
|
||||||
|
|
||||||
algoBoard.RunIdaStar();
|
algoBoard.RunIdaStar();
|
||||||
PrintBoard(0, true);
|
PrintBoard(0, true, clearScreen: printSteps);
|
||||||
|
|
||||||
static void FormattedLabRow(string line) {
|
static void FormattedLabRow(string line) {
|
||||||
char[] characters = line.ToCharArray();
|
char[] characters = line.ToCharArray();
|
||||||
|
@ -108,8 +108,8 @@ string[] FormatLabyrinth(string[] labIN) {
|
||||||
return FormattedLabyrinth;
|
return FormattedLabyrinth;
|
||||||
}
|
}
|
||||||
|
|
||||||
void PrintBoard(int threshold, bool done){
|
void PrintBoard(int threshold, bool done, bool clearScreen = true){
|
||||||
Console.Clear();
|
if (clearScreen) Console.Clear();
|
||||||
step++;
|
step++;
|
||||||
if(done){
|
if(done){
|
||||||
Console.WriteLine("The solved labyrinth is:");
|
Console.WriteLine("The solved labyrinth is:");
|
||||||
|
|
Loading…
Add table
Reference in a new issue