Skip to content
PixelCursor(opens in a new tab)
Science

Ecosystem Simulator

Two rabbits, one fox and a meadow: watch hunger, hunting and evolution play out, then drop in animals and plant bushes.

Meadow
  • The story from the video
  • Rabbits only
  • Fox sweep
  • Hedges
  • Rich meadow
  • Empty meadow
Tool
Speed
Time

Two rabbits, one fox

The run from the video: two rabbits on a fresh meadow, a single fox on day 500 and a hedge in year eight. Every animal hops exactly as in the film.

Rules of the meadow

1× the film's
±5% per birth

Both change the running meadow at once. More grass feeds more rabbits; mutation lets the speed genes drift.

Speed genes

  • Rabbits0.45 cells a stepas fast as the first onesgeneration 0
  • Foxes–none alive

Deaths so far

  • Eaten00 rabbits caught by foxes
  • Starved00 rabbits, 0 foxes
  • Old age00 rabbits, 0 foxes

The meadow's diary

Nothing has happened yet.

Things to try

  • Play the story at 16× and watch the phase loop draw its rings.
  • Switch to the hunger view right after the first rabbit peak.
  • Drop a whole row of foxes into a full meadow and see who is left.
  • Plant a hedge across the meadow and count the bush saves.
  • Turn the grass growth up in the rich meadow: do the swings get wilder?

How the model works

A meadow of 160 by 160 cells. One step is a quarter of a sim day; in every step, in this order:

  1. The grass regrows on every cell, fastest where it is half eaten, a little everywhere from its roots. Bushes carry no grass.
  2. Each rabbit looks around. A fox in sight: it flees at its top speed and swerves into a bush if one is near. Otherwise it grazes, rests under a bush when full, or hops towards greener grass.
  3. Each fox that is hungry chases the nearest rabbit it can see, unless that rabbit sits in a bush. It sprints until it is out of breath, then has to rest.
  4. Living costs energy every step, more for a fast body and sharp eyes. With no energy left an animal starves; old animals die.
  5. A well-fed adult has a litter: three kits for a rabbit, two cubs for a fox. Each copies its parent's speed and eyesight with a small random change.

The scale, honestly: animals need no mates, there is one kind of grass and no seasons, and the clock is sim time, not real days. The cycles, the waves across the meadow and the drift of the genes are not scripted: they come out of these rules.

About this tool

  • The simulation from the video

    This is the meadow the PixelCursor video was filmed with, step for step: the same rabbits, foxes, bushes and genes. The story setup replays the film exactly, because the same seed and the same actions always give the same meadow. Only in free play the foxes see 11 cells instead of 7 and sprint a little longer, so a single fox has a fair chance.

  • Why the numbers swing

    More rabbits feed more foxes, more foxes eat the rabbits down, then the foxes starve and the rabbits come back. Lotka and Volterra wrote this loop as equations a century ago; the Hudson's Bay Company's fur records show it in hares and lynx.

  • Evolution on the meadow

    Speed costs energy, so without foxes slow rabbits do better. Once foxes hunt, fast rabbits survive more often and the speed gene drifts up again. Nobody tells the genes where to go.

Keyboard

Space
Let time run or pause it
RFBC
Rabbits, fox, bushes, camera
V
Next colour view
1234
Diorama, top, low, fox cam
.
One day forward
[]
Turn the meadow
+-
Zoom in and out
N
A new meadow
↑↓←→↵
Move the ring and use the tool (stage focused)