示例#1
0
 public void RunGame()
 {
     do
     {
         Console.WriteLine("\r\n" + playerOne.name + " score is: " + playerOne.score + " and " + playerTwo.name + " score is: " + playerTwo.score);
         if (numberPlayers != "3")
         {
             Scoreing(GameLogic(playerOne.GestureCheck(), playerTwo.GestureCheck()));
         }
         else
         {
             string playerOneGesture = playerOne.GestureCheck();
             Console.WriteLine("\r\n----Press enter to pit computers against each other----");
             Console.ReadLine();
             string playerTwoGesture = playerTwo.GestureCheck();
             Scoreing(GameLogic(playerOneGesture, playerTwoGesture));
         }
     }while (playerOne.score < 2 && playerTwo.score < 2);
     DisplayWinner();
     PlayAgain();
 }