public void Init() { Console.WriteLine("Combien de soldat voulez-vous"); int numberOfSoldier = int.Parse(Console.ReadLine()); for (int i = 0; i < numberOfSoldier; i++) { Rebels Rebel = new Rebels(); Stormtroopers Stormtrooper = new Stormtroopers(); Rebels.Add(Rebel); Stormtroopers.Add(Stormtrooper); } }
public void CheckUnicityOfMatriculeSoldiersInitTests() { List <Soldiers> _rebels = new List <Soldiers>(); List <Soldiers> _stormtroopers = new List <Soldiers>(); int SumOfSoldiers = 1000000; for (var i = 0; i < SumOfSoldiers; i++) { var Rebel = new Rebels(); var Stormtrooper = new Stormtroopers(); _rebels.Add(Rebel); _stormtroopers.Add(Stormtrooper); Assert.AreNotSame(Rebel.Matricule, Stormtrooper.Matricule); } }
public void Attack(Stormtroopers stormtroopers) { base.Attack(stormtroopers); Console.WriteLine($"Traitor"); }
// the type of block // the number of blocks in the stack public Stormp(Stormtroopers color, int count) { this.color = color; this.count = count; }