Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            var tennisGame = new TennisGame("player1", "player2");

            string[] pointsOrder = { "player1", "player2", "player2", "player2", "player1", "player1" };

            foreach (var playerName in pointsOrder)
            {
                tennisGame.IncreasePlayerScore(playerName);
                tennisGame.PrintScore();
            }
        }