Home▸Genetics & Evolution▸Evolving Life: A Primer (2D)

Evolving Life: A Primer (2D)

2D top-down petri-dish genetic algorithm: organisms with mutating 8-bit genomes crawl toward a central food source, and the fittest survive to reproduce each generation.

Genetics & Evolution2DEasy60 FPS📱 Mobile-adapted⇄ 3D version
2d-evolving-life ↗ Open standalone

This 2D companion runs the same fitness-proportionate genetic algorithm as the 3D version, viewed from directly above a flat petri dish instead of orbiting a 3D scene: a side panel exposes mutation rate, selection strength, population size and simulation speed, a live readout tracks best and average fitness across generations, and each organism's 8-bit genome is decoded into a leg-length and stride gene that sets how fast it crawls toward the central food — the fittest, fastest crawlers are shown lit up brightest and are the ones selected to breed each generation.

⚙ Under the hood

2D top-down petri-dish genetic algorithm: organisms with mutating 8-bit genomes crawl toward a central food source, and the fittest survive to reproduce each generation.

genetic algorithmgeneticsevolutionnatural selection

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)