Genetic Maze

standby
Genetic Music Lab Index
Population
›
Simulate
›
Fitness
›
Select
›
Crossover
›
Mutate
↶
Mutation 2.0% · shortest possible route: 62 steps
0
generations
–
Best fitness
–
Distance to goal
0%
Reached the goal
–
Shortest found
200
Agents
–
Best ever from
The mazeAwaiting start
GEN 0
Genome executed 0 / 300
Best fitness by generation in red; the population average as the black line. The dashed rule is the goal: anything above it reached the end.
Ready

A population of pure noise

Nothing has evolved yet.

Best agent’s genome executed unused mutated
Population200
Genome length300
Mutation rate2.0%

Mutation applies immediately. Changing population or genome length restarts the experiment.

About the method. A genetic algorithm is a computational optimisation technique inspired by biological evolution — it is not a literal simulation of it, and the “genome” here is simply a list of movement instructions. Agents have no map, no sense of direction and no pathfinding: each one blindly executes its own instruction list, and fitness is measured only from where it ends up. The algorithm searches for increasingly good solutions; it is not guaranteed to find an optimal one. The shortest possible route through this maze is 62 steps.