Пример #1
0
 //Asks the user if they wish to change each player and recieves the name of the replacement players from the user, and then initialises the new players.
 private void ChangePlayers()
 {
     if (GetUserInput("Do you wish to change Player1 from " + p1.Name + " to someone else? (Y/N)"))
     {
         p1.ChangePlayer();
     }
     if (GetUserInput("Do you wish to change Player2 from " + p2.Name + " to someone else? (Y/N)"))
     {
         p2.ChangePlayer();
     }
     gameInProgress = false;
 }