Esempio n. 1
0
 public void AddScores(int point, TennisBase tennis)
 {
     if (point == 1)
     {
         tennis.SetSocreToPlayer1();
     }
     else if (point == 2)
     {
         tennis.SetSocreToPlayer2();
     }
 }
Esempio n. 2
0
 public void AddScores(int player1Score, int player2Score, TennisBase tennisBase)
 {
     for (int i = 0; i < player1Score; i++)
     {
         tennisBase.SetSocreToPlayer1();
     }
     for (int i = 0; i < player2Score; i++)
     {
         tennisBase.SetSocreToPlayer2();
     }
 }