demo

Maze evolution

A population of 40 random grids, evolved with crossover and mutation. Fitness rewards reaching the exit first, then wall density — so solvable grids keep evolving into proper mazes. Port of my C implementation.

gen 0 · best fitness 0

left: best maze this generation (blue = start, violet = exit) · right: best fitness over time