Exemple #1
0
        public Species(Genome representative)
        {
            Population = new List <Genome>();

            this.representative = representative;
            this.representative.SetSpecies(this);

            Population.Add(this.representative);

            //Random rand = new Random(new Random().Next());

            color = GenomeUtils.GetRandomColor3f();
        }
Exemple #2
0
 private float GetRandomWeight()
 {
     return(GenomeUtils.GetRandomWeight());
 }
Exemple #3
0
 public void ShiftWeight(float shiftStrength)
 {
     Weight *= GenomeUtils.GetRandomNumber() * shiftStrength;
 }
Exemple #4
0
 public void RandomizeWeight()
 {
     Weight = GenomeUtils.GetRandomWeight();
 }