Exemplo n.º 1
0
        static void Main(string[] args)
        {
            // Do not mind the red-underline, these classes need to be implemented by you

            StreetFighter mess = new StreetFighter(120, 2, 1, 7);

            ProFighter ryu = new ProFighter(150, 4, 2, 13);

            RockStarFighter blanka = new RockStarFighter(170, 5, 4, 17);



            ryu.DoBoxing(blanka);

            mess.DoStreet(blanka);

            blanka.DoBoxing(ryu);

            blanka.DoMuayThai(ryu);

            blanka.DoStreet(mess);



            Console.ReadLine();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            StreetFighter   mess   = new StreetFighter(120, 2, 1, 7);
            ProFighter      ryu    = new ProFighter(150, 4, 2, 13);
            RockstarFighter blanka = new RockstarFighter(170, 5, 4, 17);

            ryu.DoBoxing(mess);
            mess.DoStreet(ryu);
            blanka.DoMuayThai(ryu);

            Console.ReadLine();
        }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            StreetFighter   mess   = new StreetFighter("Mumin", 120, 2, 1, 7);
            ProFighter      ryu    = new ProFighter("Bojka", 150, 4, 2, 13);
            RockstarFighter blanka = new RockstarFighter("Blanka", 170, 5, 4, 17);

            Console.WriteLine($"{ryu.Name} vs {blanka.Name}");
            while (true)
            {
                ryu.DoBoxing(blanka);
                if (blanka.GetHealth() == 0)
                {
                    break;
                }
                Thread.Sleep(300);
                blanka.DoBoxing(ryu);
                if (ryu.GetHealth() == 0)
                {
                    break;
                }
                Thread.Sleep(300);
            }
            Console.ReadLine();
        }