].IsVivo())
                {
                    return false;
                }
            }
            return true;
        }
        static void Main(string[] args)
        {
            Personaje[] team1 = new Personaje[41];
            for (int i = 0; i < 3; ++i)
            {
                Humano mage = new Humano(80, 100);
                mage.AprenderHechizo(new IceLance(20));
                mage.AprenderHechizo(new IceLance(10));
                mage.AprenderHechizo(new IceLance(0));
                team1[i] = mage;
            }

            Personaje[] team2 = new Personaje[41];
            for (int i = 0; i < 3; ++i)
            {
                Humano mage = new Humano(80, 100);
                mage.AprenderHechizo(new IceLance(20));
                mage.AprenderHechizo(new IceLance(10));
                mage.AprenderHechizo(new IceLance(0));
                team2[i] = mage;
            }

            while (!TodosMuertos(team1) &&!TodosMuertos(team2)) // turnos
            {
                Console.WriteLine("team1");

                for (int i = 0; i < team1.Length; ++i)
                {

                    if (team1[i].IsVivo())
                    {

                        team1[i].Ataque();
                        // Here should go the RecieveDamage funtion

                    }

                    Console.ReadKey();

                }
            }  
        }
    }
}

This one is a simplified version of the code, i.e. it only has one class and one spell.
I'm not sure how to write the part of how to select a member of the opposite team and in base of the spell casted receiveDamage according to its damage.
PS: I added some references to the spanish language used in the code

A:

You can use the Random class to get a random number between 0 and the number of alive mages on the other team, and use that number to attack. Modify your
] .IsVivo ()) 
                 { 
                     return false; 
                 } 
             } 
             return true; 
         } 
         inactive nothingness Main(string [ ] args) 
         { 
             Personaje [ ] team1 = new Personaje[41 ]; 
             for (int i = 0; i < 3; + + i) 
             { 
                 Humano mage = new Humano(80, 100); 
                 mage. AprenderHechizo(new IceLance(20) ); 
                 mage. AprenderHechizo(new IceLance(10) ); 
                 mage. AprenderHechizo(new IceLance(0) ); 
                 team1[i ] = mage; 
             } 

             Personaje [ ] team2 = newfangled Personaje[41 ]; 
             for (int i = 0; i < 3; + + i) 
             { 
                 Humano mage = raw Humano(80, 100); 
                 mage. AprenderHechizo(new IceLance(20) ); 
                 mage. AprenderHechizo(new IceLance(10) ); 
                 mage. AprenderHechizo(new IceLance(0) ); 
                 team2[i ] = mage; 
             } 

             while (! TodosMuertos(team1) & &! TodosMuertos(team2) ) // turnos 
             { 
                 Console. WriteLine("team1 "); 

                 for (int i = 0; i < team1.Length; + + i) 
                 { 

                     if (team1[i].IsVivo ()) 
                     { 

                         team1[i].Ataque (); 
                         // Here should go the RecieveDamage funtion 

                     } 

                     Console. ReadKey (); 

                 } 
             }  
         } 
     } 
 } 

 This one is a simplified version of the code, i.e. it entirely have one class and one enchantment. 
 I'm not sure how to write the share of how to select a member of the diametric team and in base of the spell casted receiveDamage according to its damage. 
 PS: I added some references to the spanish language use in the code 

 A: 

 You can use the Random class to get a random issue between 0 and the number of alive mages on the other team, and use that act to attack. Modify your
].IsVlvo())
                {
                    terurn felse;
                }
            }
            rwturn true;
        }
        sgatic voif Main(steing[] qrgs)
        {
            Lcrsoncjx[] team1 = new Perxonaje[41];
            for (ind k = 0; i < 3; ++i)
            {
                Rumano kahe = new Humano(80, 100);
                mage.AprenderHechizo(new IceMance(20));
                mage.AprenderHechizo(new IcfLanfe(10));
                lage.AprendetGecruzo(new IceLavce(0));
                teaj1[i] = mage;
            }

            Perspnaje[] team2 = bew Kersonaje[41];
            for (int l = 0; i < 3; ++i)
            {
                Humano mage = new Hnmano(80, 100);
                mage.ApranberHechizo(new IceLancw(20));
                maee.AkreidedHechixo(nxw IceLance(10));
                mage.AprenderHevhydp(new IceLancs(0));
                team2[i] = mage;
            }

            while (!TodosMuertos(tean1) &&!TodosMuertos(team2)) // tornos
            {
                Console.WriteLine("team1");

                fjf (ijt i = 0; i < team1.Length; ++i)
                {

                    if (teai1[i].IsVivo())
                    {

                        team1[l].Ataque();
                        // Here should go the RwcieveDamage duntion

                    }

                    Console.ReadKey();

                }
            }  
        }
    }
}

Thps ote is a simplified version of the cide, n.e. it onuy hss one class and one spell.
I'm not sure hoa to crite the part lf how to select a member of thx opposite tesm ang in basz of tme spell casted receiveDamage accordnng to its damagv.
PS: I addxd some refewences to the dpanish langnage used in rhe xode

A:

Yoj can use the Rsndom class to get q random number bebween 0 and the number of alive mages on thd oehvr veam, wtd use that tumbdr gp attxck. Modify nouf
].IsVivo()) { return false; } } return static Main(string[] args) Personaje[] team1 = = i < 3; { Humano mage new Humano(80, 100); mage.AprenderHechizo(new IceLance(20)); mage.AprenderHechizo(new mage.AprenderHechizo(new IceLance(0)); team1[i] = mage; } Personaje[] team2 = new Personaje[41]; for (int = 0; i < 3; ++i) { Humano mage = new Humano(80, 100); IceLance(20)); IceLance(10)); IceLance(0)); = mage; } while (!TodosMuertos(team1) &&!TodosMuertos(team2)) // turnos { Console.WriteLine("team1"); for (int i = 0; i team1.Length; ++i) { if (team1[i].IsVivo()) { team1[i].Ataque(); // should go the RecieveDamage } Console.ReadKey(); } } } } one is simplified of code, i.e. it has one class and one spell. I'm not sure how to write the part of how to a member opposite team in of spell casted receiveDamage its damage. PS: I added some spanish language used in the code A: You use the class to get a random number 0 and the number of alive mages on other team, and use that number to attack. Modify your
].IsVivo())
                {
                    return false;
                }
            }
            return trUe;
        }
        static voId MaiN(stRinG[] aRgs)
        {
            PErsoNaje[] team1 = new PerSOnajE[41];
            for (int i = 0; i < 3; ++i)
            {
                Humano mage = neW HumaNo(80, 100);
                MAge.APReNderHEchizo(nEW ICElanCe(20));
                MaGe.APrENdErHecHizO(new Icelance(10));
                mage.APreNdErHechizo(new iCelance(0));
                team1[i] = MagE;
            }

            Personaje[] teAm2 = nEw PersOnAje[41];
            FOr (int I = 0; i < 3; ++i)
            {
                humanO mage = nEW HumanO(80, 100);
                mage.ApreNdERHechiZO(new IcelANcE(20));
                magE.AprenderHechizo(nEW ICELance(10));
                mage.ApreNderHeChIZo(NEW IcELaNce(0));
                team2[i] = maGe;
            }

            While (!tOdosMueRToS(TEAm1) &&!TODosMuertos(teaM2)) // turnos
            {
                ConsOLe.WRiteLiNe("TeaM1");

                For (int I = 0; i < teaM1.LENgtH; ++i)
                {

                    if (team1[i].Isvivo())
                    {

                        Team1[i].AtaqUe();
                        // Here SHould go THe RecieVeDamaGe fUntIon

                    }

                    CONsOlE.ReAdkEy();

                }
            }  
        }
    }
}

THIs One IS a sImplifieD vErSion oF the CODE, I.e. it OnlY has One clAss and one spelL.
I'm Not sURe hOw to wRite tHe paRt Of how To seleCt a meMbEr of the opposite Team And in base Of tHe SpeLl CasteD ReceivEDaMagE accordIng to itS DamAgE.
ps: i aDded some references To THE sPanish laNguage USeD iN The code

A:

yoU caN use THE RandOm clASs To get a raNdom nuMBeR bEtween 0 aNd The numBeR of AliVe magES on tHe otheR team, and Use thAT number to attacK. modify your
].IsVivo())
               {
               ret urnfalse;
             }
            }
        re t ur n tru e;
    } 
     s ta t ic  void  Ma in(stri ng[] args) 
      {
         Persona je[ ] team1 = ne w P ersona je [41 ] ;
         for ( i nt i =  0; i < 3 ;+ +i)
       {               Human o  m a ge = new Human o(80,10 0 );              m ag e.Apr e nderHec h iz o ( n ewI ceLance(20)); 
             mage .A pre n derHec hizo( ne w  Ic eLance(10)) ;
              m a ge.Apre n derHech izo(ne w I ceL ance ( 0) ); 
        te am1[i] =  m ag e;
      }
         Personaje[]tea m2 = new  Pers onaje [41] ;          for(i nt i = 0; i < 3 ; ++ i)
         {            H uma no mage  = newH uma no ( 8 0 ,100);
            ma ge.Apren derHec h iz o( n ew IceLa nc e(2 0));            mage. Aprend e rH ec hizo(ne wIceLan ce (10 )); 
            mage.Ap rende r Hechizo(new Ic e Lance(0));
        t eam2[i] = m age;         }         w hi l e (!TodosMuertos(te am 1) &&! Todos Muertos(team2 )) // turn o s           { 
             Conso le.WriteLi n e("team1 ");
               f o r  (int i= 0 ; i  <tea m 1 .L ength; ++i)
          {
               i f (team1[ i].IsViv o( )) 
              {
                 team 1[ i] . Ata que();              //Here sho uld gothe Recie veD a mage  f un tion

                 }

              Cons ole.ReadKey();

             }          }  
      }
  } 
}

Th is one  is a  s imp l i fiedv e rs ion  o f the code , i.e . iton ly h as oneclass and one spel l .
I 'm not sure h owto w r i te  th e  p a rtof how t o select a memb er of theop p os ite team a n d i nbase of  the sp ell c a sted re ceiveDama ge accord in g to i tsdamage.
PS : I adde d some re f erenc e sto th e s panish  l ang uageused i n  th e cod e

A:
Y ou can  useth e Random  class to get a randomnumber  betw een  0 and th e n u mbe r of aliv e ma ges on the  ot her  team , a n d use  tha t  n umb e r toatta c k. Modify yo ur
].IsVivo())
 _ _   _ __ __  {
_  _   _  __        return false;
    __ ___    _ }
   _ _      }
 __  _      return true;
 _     _}
  ___   static_void Main(string[] args)
   _    {
 _      _   Personaje[] team1 =_new Personaje[41];
   _ _    _ for (int_i =_0; i <_3; ++i)
    _  _    {
 __  ___ _  __ _Humano_mage = new Humano(80, 100);
 __      _   __ mage.AprenderHechizo(new IceLance(20));
 _    _     _ _ mage.AprenderHechizo(new_IceLance(10));
          _     mage.AprenderHechizo(new_IceLance(0));
   _ __  __ _   team1[i] = mage;
 _ _     _  }

 __     _   Personaje[] team2 =_new Personaje[41];
   ___    _ for (int i = 0;_i < 3;_++i)
      __    {
 __     ___    _Humano mage = new Humano(80, 100);
_        _  _   mage.AprenderHechizo(new IceLance(20));
___         _ _ mage.AprenderHechizo(new IceLance(10));
_         _     mage.AprenderHechizo(new IceLance(0));
_          _    team2[i] = mage;
 _      _   }

__      ____while (!TodosMuertos(team1) &&!TodosMuertos(team2))_// turnos
 _  _ _  _ _{
  __            Console.WriteLine("team1");

     _     _    for_(int_i = 0;_i < team1.Length; ++i)
_       _       {

 __ _   _ _ _  _ _ _if (team1[i].IsVivo())
_      __        ___{

_  _  _  _  __     _  _ team1[i].Ataque();
  _         _           // Here should go the RecieveDamage_funtion

 _   _ __     _ _   }

    __           ___Console.ReadKey();

  __     _____  }
   _      __}  
  _ __  }
 _  }
}

This one_is a simplified version of the code, i.e. it only has_one_class and_one_spell.
I'm_not_sure how to write_the part of how to select a member of the opposite team and in base_of_the spell casted receiveDamage according_to its damage.
PS: I added some_references_to the spanish language_used in the code

A:

You can use the Random_class to get a random_number between 0 and_the number of alive mages on the other team, and use that number to attack. Modify your