Beispiel #1
0
 public Warren(int Variability, int rabbitCount)
 {
     this.Variability = Variability;
     this.RabbitCount = rabbitCount;
     Rabbits          = new Rabbit[MaxRabbitsInWarren];
     for (int r = 0; r < RabbitCount; r++)
     {
         Rabbits[r] = new Rabbit(Variability);
     }
 }
Beispiel #2
0
 public Warren(int Variability)
 {
     this.Variability = Variability;
     Rabbits          = new Rabbit[MaxRabbitsInWarren];
     RabbitCount      = (int)(CalculateRandomValue((int)(MaxRabbitsInWarren / 4), this.Variability));
     for (int r = 0; r < RabbitCount; r++)
     {
         Rabbits[r] = new Rabbit(Variability);
     }
 }