1
0
Fork 0
mirror of https://github.com/dancojocaru2000/ai-project-idastar.git synced 2025-02-22 16:39:35 +02:00

Allow lowercase y to be interpreted as yes

This commit is contained in:
Kenneth Bruen 2021-12-04 14:40:04 +02:00
parent 130b869f07
commit ead914fdbe
Signed by: kbruen
GPG key ID: C1980A470C3EE5B1

View file

@ -26,7 +26,7 @@ bool printSteps = false;
Console.WriteLine();
Console.WriteLine("Show each step? (Y/N) ");
if(Console.ReadLine()?.Trim() == "Y") {
if(Console.ReadLine()?.Trim().ToUpperInvariant() == "Y") {
printSteps = true;
}