HomeAlgorithms & AIGenetic Algorithm Evolution Simulator

Genetic Algorithm Evolution Simulator

Interactive genetic-algorithm simulator: a population of agents tries to cross a 3D landscape of obstacles to reach a goal. Each generation the weakest die off, the fittest crossbreed and mutate, and the population visibly learns a better path over time.

Algorithms & AI3DModerate60 FPS
genetic-algorithms ↗ Open standalone

Genetic algorithms search for good solutions the way evolution does: keep a population of candidate answers, score each one by how well it performs, let the fittest reproduce, and repeat. This simulator makes that loop visible. A population of agents starts each generation at the same line and drives across a 3D landscape scattered with obstacles toward a fixed goal, each agent steering according to its own chromosome — a short sequence of turn genes. Agents that get close to the goal (or reach it) score well; agents that crash into an obstacle are penalized. At the end of every generation the weakest agents are discarded, the fittest survivors crossbreed and mutate to produce the next population, and the cycle repeats — watch the fitness graph climb and the swarm's paths tighten into a clean route as it learns.

⚙ Under the hood

Watch a population of agents cross a 3D obstacle landscape toward a goal. Each generation the weakest die off, survivors crossbreed and mutate, and the population visibly learns a faster route generation after generation.

Three.jsgenetic algorithmevolutionoptimizationInstancedMesh

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)