All models

MathPets source

Maze

wallsdiffusiongradient followingpreset wall maps
Open in VS Code

The goal patch at the exit radiates a scent that relaxes outward one cell per pass — each open patch takes a fraction of its strongest neighbor. Walls hold zero, so the field flows through corridors only and becomes a distance map of the maze.

Runners released at the entrance simply climb that gradient. No pathfinding, no memory of the layout: the maze is solved by the world itself. Switch presets to stamp a different wall layout, or hit Draw and carve your own.

board · 728 × 520grid · on