Example #1
0
        static void Main(string[] args)
        {
            Human   person_1 = new Human("person_1");
            Ninja   person_2 = new Ninja("person_2");
            Wizard  person_3 = new Wizard("person_3");
            Samurai person_4 = new Samurai("person_4");

            person_4.Attack(person_1);
            System.Console.WriteLine(person_1.Health);
            person_3.Heal(person_1);
            person_3.Heal(person_1);
            person_2.Steal(person_1);
            person_3.Attack(person_1);
            System.Console.WriteLine($"How is {person_1.Name} doing? HP: {person_1.Health}");
        }
Example #2
0
        static void Main(string[] args)
        {
            Human   Tyler = new Human("Tyler");
            Wizard  Art   = new Wizard("Art");
            Ninja   Jeff  = new Ninja("Jeff");
            Samurai Todd  = new Samurai("Todd");

            Jeff.Attack(Tyler);
            Tyler.getStats();
            Todd.Meditate();
            Todd.getStats();
            Art.Attack(Todd);
            Todd.getStats();
            Todd.Meditate();
            Todd.getStats();
        }
        static void Main(string[] args)
        {
            var player1 = new Samurai("Fabian", 20, 10, 5);
            var player2 = new Ninja("Elena", 50, 70, 30);
            var player3 = new Wizard("Anthony", 15, 30);

            Console.WriteLine(player1);
            Console.WriteLine(player2);
            // Console.WriteLine(player3);
            player2.Attack(player1);
            // player3.Heal(player2);
            // player2.Steal(player3);
            // player1.Meditate();
            Console.WriteLine(player1);
            Console.WriteLine(player2);
        }
Example #4
0
        static void Main(string[] args)
        {
            Wizard  jim = new Wizard("jim");
            Ninja   kyo = new Ninja("kyo");
            Samurai bob = new Samurai("bob");

            jim.Fireball(bob);
            kyo.Steal(jim);
            bob.Death_Blow(kyo);
            jim.Fireball(bob);
            kyo.Steal(jim);
            bob.Death_Blow(kyo);
            jim.Fireball(bob);
            kyo.Steal(jim);
            bob.Death_Blow(kyo);
            jim.Fireball(bob);
            kyo.Steal(jim);
            bob.Death_Blow(kyo);
        }
Example #5
0
        static void Main(string[] args)
        {
            Ninja vasea    = new Ninja("Mr.Vasea");
            Ninja michelle = new Ninja("Michelle");

            michelle.Attack(vasea);
            vasea.ShowStats();
            Wizard ana = new Wizard("Ana");

            ana.Heal(vasea);
            vasea.ShowStats();
            Samurai david = new Samurai("David");

            while (michelle.Health > 0)
            {
                david.Attack(michelle);
                vasea.Attack(michelle);
                ana.Attack(michelle);
            }
        }
 public static void Main(string[] args)
 {
     Wizard  wizard1  = new Wizard("Merlin");
     Ninja   ninja1   = new Ninja("Shinobi");
     Samurai samurai1 = new Samurai("Akira");
 }
 public static void Main(string[] args)
 {
     Wizard  wiz = new Wizard("Caster");
     Ninja   nin = new Ninja("Sneaker");
     Samurai sam = new Samurai("Slasher");
 }