Ejemplo n.º 1
0
        public void Run()
        {
            while (true)
            {
                player1.Attack(player2);

                if (player1.IsDead())
                {
                    PrintWinner(player2);
                    break;
                }

                player2.Attack(player1);

                if (player2.IsDead())
                {
                    PrintWinner(player1);
                    break;
                }
            }
        }