A navigation benchmark measuring how agents evolve through tournament selection, crossover and mutation to solve mazes.
Problem
Maze solving is a small but demanding model of autonomous navigation: the agent sees only local walls, does not know the goal, and must find a long-horizon path.
This work visualises how a genetic algorithm behaves on that problem.
Approach
Each agent receives 11 local distance/obstacle signals and chooses a direction through a neural network. The population evolves via tournament selection, elitism, crossover and mutation. Fitness combines goal proximity, exploration, efficiency and a step penalty.
Method
JavaScript + Canvas; 25×25 maze; 11-24-24-16-4 network; tournament selection (3), single-point crossover, mutation; speed controls; generation, best-score and alive-agent metrics.
Findings
The simulation shows whether agents learn to reach the goal in fewer steps across generations. The best agent and the maze are drawn live.
Status: Live. Multi-maze runs, 10 seeds and a success-rate report are planned for the next release.
Limitations
One maze and one run; results depend on the seed. Fitness weights are a design choice; this is not a claim of general maze-solving ability. Generalisation to unseen mazes has not been measured.