Esempio n. 1
0
        // It works the same as HumanTurn()
        static void OrcTurn()
        {
            if (IsGameOver())
            {
                Console.WriteLine($"{orc.Name} Win!");
                return;
            }
            Console.WriteLine($"{orc.Name}'s Turn");
            int rand = rng.Next(0, 101);

            if (rand > 80)
            {
                orc.CastSuperSkill();
                Thread.Sleep(1500);
                human.Hit(orc.Damage * 2);
                Thread.Sleep(1500);
            }
            else
            {
                orc.CastBasicSkill();
                Thread.Sleep(1500);
                human.Hit(orc.Damage);
                Thread.Sleep(1500);
            }
            HumanTurn();
        }