Add comments
This commit is contained in:
@ -12,6 +12,7 @@ namespace Memory.Cmd
|
||||
{
|
||||
Game game = new(new ScoreHandler(), name, 10);
|
||||
CmdGame cmdGame = new(game);
|
||||
// While the game isn't finished ask for a card index then attempt to click the card
|
||||
while (!game.IsFinished())
|
||||
{
|
||||
cmdGame.Redraw();
|
||||
@ -24,6 +25,7 @@ namespace Memory.Cmd
|
||||
}
|
||||
Console.Clear();
|
||||
cmdGame.WriteScores();
|
||||
// Ask if the player wants to play again, if not break out of the loop and the program is finished
|
||||
if (!CmdGame.ShouldReplay())
|
||||
{
|
||||
break;
|
||||
|
Reference in New Issue
Block a user