Artificial Life Ecosystem Simulation new

Ecosystem Simulation

Observe predator-prey dynamics through natural selection and evolution

Population
Plants 0
Herbivores 0
Carnivores 0
Generation 0
Herbivore Traits
Avg Speed -
Avg Size -
Avg Sense -
Carnivore Traits
Avg Speed -
Avg Size -
Avg Sense -
Controls
Simulation
Parameters
Effects
Population Over Time

Lotka-Volterra Dynamics

This simulation models predator-prey interactions inspired by the Lotka-Volterra equations, where population oscillations emerge naturally from the food chain.

Species Hierarchy:

  • Plants (green): Grow randomly, provide base energy for the ecosystem
  • Herbivores (blue): Feed on plants, prey for carnivores
  • Carnivores (red): Hunt herbivores, apex predators

Energy System:

  • Entities gain energy by consuming food (plants or prey)
  • Energy depletes over time based on metabolism
  • Death occurs when energy reaches zero
  • Reproduction triggered at energy threshold

Evolution Mechanics:

  • Offspring inherit traits from parents with random mutations
  • Speed: Movement velocity (higher = faster but more energy cost)
  • Size: Body size (larger = more energy storage, easier to catch prey)
  • Sense: Detection range for food/threats (wider = better awareness)

Emergent Behaviors: Population cycles naturally emerge: herbivores thrive when plants are abundant, carnivores multiply with plentiful prey, over-predation leads to crashes, and the cycle repeats.

© 2013 - 2026 Cylian Size:  T S M L W Theme:  Dark Light [Detected] [Forced] 0.62.0 (f7ef9462) 🤖 Claude
About

Generation Prompt

Page: Ecosystem Simulation - Predator-Prey Dynamics
Slogan: "Observe predator-prey dynamics through natural selection and evolution"

Structure:
- Widget before:title -> h1 + p.slogan centered
- Main -> Canvas in .card.full.ratio-16-9 (HD via devicePixelRatio)
- Widget after:algorithm -> Lotka-Volterra dynamics explanation
- Widget modal:claude -> Documentation

Three species:
- Plants (green): Spawn randomly, stationary, base of food chain
- Herbivores (blue): Move, eat plants, hunted by carnivores
- Carnivores (red): Move, hunt herbivores, apex predators

Energy system:
- Gain energy by eating (plants: fixed, prey: percentage of prey energy)
- Lose energy over time (metabolism based on speed/size)
- Die when energy <= 0
- Reproduce when energy > threshold (split energy with offspring)

Evolution (offspring inherit mutated traits):
- speed: 0-1 gene -> movement speed, higher = more energy cost
- size: 0-1 gene -> body radius, affects catch/escape probability
- sense: 0-1 gene -> detection range for food and threats

Population graph:
- Real-time line chart showing all three species
- Colors match species (green/blue/red)
- Sliding window of last N frames

Controls:
- Start/Pause button
- Reset button
- Sliders: reproduction threshold, mutation rate