Esempio n. 1
0
 private void SecondPlayerHit(int hit)
 {
     for (int i = 0; i < hit; i++)
     {
         game.SecondPlayerScore();
     }
 }
Esempio n. 2
0
        public static void Main(string[] args)
        {
            TennisGame game = new TennisGame("GZ", "CNN");

            game.FirstPlayerScore();
            game.Score();
            game.SecondPlayerScore();
            game.Score();

            game.FirstPlayerScore();
            game.FirstPlayerScore();
            game.SecondPlayerScore();
            game.SecondPlayerScore();
            game.Score();

            game.SecondPlayerScore();
            game.Score();

            game.SecondPlayerScore();
            game.Score();
        }