mirror of
https://github.com/dancojocaru2000/ai-project-idastar.git
synced 2025-02-22 16:39:35 +02:00
Add -w or --wait to wait for keypress before close
This commit is contained in:
parent
1cc2a88d8b
commit
274c9b0d42
1 changed files with 4 additions and 0 deletions
|
@ -39,6 +39,10 @@ if(printSteps) {
|
||||||
algoBoard.RunIdaStar();
|
algoBoard.RunIdaStar();
|
||||||
PrintBoard(0, true, clearScreen: printSteps);
|
PrintBoard(0, true, clearScreen: printSteps);
|
||||||
|
|
||||||
|
if (args.Contains("-w") || args.Contains("--wait")) {
|
||||||
|
Console.ReadKey();
|
||||||
|
}
|
||||||
|
|
||||||
static void FormattedLabRow(string line) {
|
static void FormattedLabRow(string line) {
|
||||||
char[] characters = line.ToCharArray();
|
char[] characters = line.ToCharArray();
|
||||||
foreach (char c in characters) {
|
foreach (char c in characters) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue