Пример #1
0
 public void MutateMaze(
     Random rand,
     PM_Maze maze,
     int currentNumIterations,
     int maxNumIterations
     )
 {
     MazeDestructionMethod.DestroyMaze(rand, maze);
     MazeRepairMethod.RefillMaze(rand, maze);
 }
        public override MEL__Maze_Individual Generate_Offspring(Random randomness_provider, MEL__Maze_Individual parent)
        {
            PM_Maze maze_clone = (PM_Maze)parent.maze.DeepCopy();

            // destroy the maze clone
            MazeDestructionMethod.DestroyMaze(randomness_provider, maze_clone);
            MazeRepairMethod.RefillMaze(randomness_provider, maze_clone);

            MEL__Maze_Individual offspring = new MEL__Maze_Individual(maze_clone);

            return(offspring);
        }