Exemple #1
0
 public void CalculateWinner()
 {
     if (playerLeftScore > playerRightScore)
     {
         winningSituation = WinningSituations.LeftWins;
     }
     if (playerLeftScore < playerRightScore)
     {
         winningSituation = WinningSituations.RightWins;
     }
     if (playerLeftScore == playerRightScore)
     {
         winningSituation = WinningSituations.Tie;
     }
 }
Exemple #2
0
 public void CalculateWinner()
 {
     if (playerLeftScore > playerRightScore)
     {
         winningSituation = WinningSituations.LeftWins;
     }
     if (playerLeftScore < playerRightScore)
     {
         winningSituation = WinningSituations.RightWins;
     }
     if (playerLeftScore == playerRightScore)
     {
         winningSituation = WinningSituations.Tie;
     }
 }