Skip to content
Permalink
Browse files
Update Program.cs
  • Loading branch information
villamizae committed Nov 19, 2021
1 parent 9938345 commit 526c6106ac7028fef10c4c99b6a436f81141f20d
Showing 1 changed file with 7 additions and 1 deletion.
@@ -792,7 +792,7 @@ namespace ChessTest3
Console.BackgroundColor = ConsoleColor.White;
Console.WriteLine("Welcome to the chess game! Would you like a standard game or a custom game? Type S for standard, or C for custom");
string input = Console.ReadLine();
if (input == "Y" || input == "y")
if (input == "S" || input == "s")
{
Board board = new Board();
board.Initialize();
@@ -822,6 +822,12 @@ namespace ChessTest3
ErrorChecking.GameEnd(board.CheckMateBlack);
Console.ReadKey();
}
else if (input == "C" || input == "c")
{
string text = System.IO.File.ReadAllText(@"C:");
System.Console.WriteLine(text);
System.Console.ReadKey();
}
}
}
}

0 comments on commit 526c610

Please sign in to comment.