Exemplo n.º 1
0
        //Adds one win to the turn player's total wins, one loss to the standby player's total losses, and ends the game, sending the user back to the menu.
        private void TurnPlayerWin()
        {
            gameInProgress = false;
            turnPlayer.AddWin();
            standbyPlayer.AddLoss();
            menu = true;
            DisplayVictor();

            StreamWriter writer = new StreamWriter("Logs\\" + logFileName + ".txt");

            writer.WriteLine("-------------------------------------");
            writer.WriteLine(turnPlayer.Name + " Has Won.");
            writer.Close();
        }