예제 #1
0
 public override DesiredMove GetDesiredMove(ISurroundings surroundings)
 {
     return(new DesiredMove
     {
         PrimaryMove = new Move(MoveType.Forward),
         SecondaryMove = new Move(MoveType.RotRight)
     });
 }
예제 #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);
            }
        }
예제 #3
0
 public override DesiredMove GetDesiredMove(ISurroundings surroundings)
 {
     return(null); // comes from user input
 }
예제 #4
0
 public abstract DesiredMove GetDesiredMove(ISurroundings surroundings);