Esempio n. 1
0
 public override DesiredMove GetDesiredMove(ISurroundings surroundings)
 {
     return(new DesiredMove
     {
         PrimaryMove = new Move(MoveType.Forward),
         SecondaryMove = new Move(MoveType.RotRight)
     });
 }
Esempio n. 2
0
        public override void ConstructFromOrganism(IOrganism organism, ISurroundings surroundings)
        {
            base.ConstructFromOrganism(organism: organism, surroundings: surroundings);

            var o = (IGEPOrganism) organism;
            var gepSurroundings = (IGEPSurroundings) surroundings;

            foreach(IGEPChromosome chromosome in o.GetChromosomes())
            {
                var debuggableChromosome = 
                    chromosome.ToDebuggableChromosome(new GEPChromosomeSurroundings(gepSurroundings));

                this.Chromosomes.Add(debuggableChromosome);
            }
        }
Esempio n. 3
0
 public override DesiredMove GetDesiredMove(ISurroundings surroundings)
 {
     return(null); // comes from user input
 }
Esempio n. 4
0
 public abstract DesiredMove GetDesiredMove(ISurroundings surroundings);