1
0
Fork 0
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:
Kenneth Bruen 2021-12-06 16:16:50 +02:00
parent 1cc2a88d8b
commit 274c9b0d42
Signed by: kbruen
GPG key ID: C1980A470C3EE5B1

View file

@ -39,6 +39,10 @@ if(printSteps) {
algoBoard.RunIdaStar();
PrintBoard(0, true, clearScreen: printSteps);
if (args.Contains("-w") || args.Contains("--wait")) {
Console.ReadKey();
}
static void FormattedLabRow(string line) {
char[] characters = line.ToCharArray();
foreach (char c in characters) {