interactive

Demos

Maze evolution

Genetic algorithm · Canvas

Watch a population of random grids evolve into solvable mazes — fitness graph included. A JS port of my C genetic algorithm.

A* vs Dijkstra

Pathfinding · Canvas

Draw walls on a grid and race both algorithms on it — see exactly why a heuristic matters.