Ejemplo n.º 1
0
 public void StartGame()
 {
     SetPlayers();
     player1.SetName(player1, 1);
     player2.SetName(player2, 2);
     DetermineWinner(player1.MakeChoice(player1, gestures), player2.MakeChoice(player2, gestures));
 }
Ejemplo n.º 2
0
 public void StartGame()
 {
     SetTypeOfGame();
     SetBestOfCount();
     if (gameType == 2)
     {
         DisplayHeader();
         player1.SetName();
         DisplayHeader();
         player2.SetName();
     }
     else
     {
         DisplayHeader();
         player1.SetName();
     }
 }
Ejemplo n.º 3
0
 public void CreatePlayer(string playerNumber)
 {
     playerOne = new Human();
     playerOne.SetName();
     Console.Clear();
     if (playerNumber == "TWO")
     {
         playerTwo = new Human();
         playerTwo.SetName();
         Console.Clear();
     }
     else if (playerNumber == "ONE")
     {
         playerTwo = new AI();
     }
 }