Skip to content

kai9987kai/evolution-simulator

Repository files navigation

Evolution Lab

An interactive, research-informed individual-based evolution simulator. Open Webbots-alpha.html in a modern browser; it has no runtime dependencies.

What evolves

Each organism inherits quantitative traits for speed, body size, sensing, metabolic efficiency, aggression, sociality, behavioral plasticity, thermal preference, fecundity, exploration, and lineage colour. Nearby, energy-rich organisms can reproduce. Their offspring receive recombined parental traits plus bounded mutations.

There is no fixed fitness score. Survival and reproduction emerge from:

  • renewable but locally limited resources;
  • energetic costs for movement, body size, sensing, and thermal mismatch;
  • a spatial temperature gradient and selectable seasonal or warming regimes;
  • behavioral thermoregulation that can buffer thermal mismatch at a cost;
  • local competition, mating, predation, ageing, and drought disturbance.

The dashboard tracks population, births, deaths, generation depth, resource availability, trait diversity, approximate functional ecotypes, mean thermal lag, and mean plasticity. A drought assay records resistance at the population nadir and time to recover to 90% of the pre-drought baseline. Click an organism to inspect its genome. Experiments are reproducible from a text seed.

Controls

  • Space: pause or resume
  • F: toggle fullscreen
  • Environment: stable gradient, strong seasons, or rapid warming
  • Mutation strength and resource renewal can be changed while running
  • Trigger drought applies an 18-second resource-growth shock
  • Gene-flow pulse introduces ten warm-adapted migrants from a hypothetical source population
  • Reset experiment reruns the current seed and settings

Research basis

The model is exploratory rather than predictive. Its mechanisms were selected to reflect active research directions:

The simulator translates these ideas into transparent hypotheses, not fitted biological parameters. A gene-flow pulse is therefore an intervention to test, not a guaranteed rescue, and extinction is retained as an outcome rather than being silently repopulated.

Earlier experiments

Base model.py, beta.py, and 3d-version-beta-in-blenderscript are retained as historical Turtle and Blender prototypes.

About

An interactive, research-informed individual-based evolution simulator. Open Webbots-alpha.html in a modern browser; it has no runtime dependencies.w

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors