public void DetermineWinner(int player1Choice, int player2Choice) { int[] checker = AccessValues(gestureInstance.winningGestures, player1Choice); if (player1Choice == player2Choice) { InformUser("Draw! press <enter> to continue"); DetermineWinner(player1.MakeChoice(player1, gestures), player2.MakeChoice(player2, gestures)); } else if (player2Choice == checker[0] || player2Choice == checker[1]) { UpdateWinner(player1); } else { UpdateWinner(player2); } }
public void RunGame() { DisplayRules(); GetPlayers(); while (PlayerOne.RoundScore < 2 && PlayerTwo.RoundScore < 2) { PlayerOne.MakeChoice(); PlayerTwo.MakeChoice(); CompareChoices(PlayerTwo.Choice); Winner(); } PlayAgain(); Environment.Exit(0); }
public void RunGame() { SetPlayers(); player1.MakeChoice(); player2.MakeChoice(); }