The Lab · Lotka–Volterra, 1920s
Foxes and Rabbits
A meadow. Grass grows, rabbits eat the grass, foxes eat the rabbits. Nobody is in charge, yet both animals boom and bust in waves. Watch the chart under the meadow.
What your click adds
Click or drag on the meadow. Rabbits can hide in bushes; foxes can't get in.
Shake things up
A plague brings 40 hungry foxes. Sickness kills half the foxes. A drought halves grass growth for 30 seconds.
Why the waves?
With few foxes about, rabbits eat, breed and boom. Lots of rabbits means well-fed foxes, so foxes boom too, but a little later. Soon there are more foxes than the rabbits can stand. The rabbits crash. Now the foxes go hungry and starve. With few foxes left, the rabbits recover, and round it goes again.
On the chart, each fox peak comes just after a rabbit peak. Plot rabbits against foxes (the box on the right) and the numbers trace a loop.
The grass matters too. Too many rabbits strip the meadow bare, and then they starve with no fox in sight. Try Fox sickness a few times until the foxes are gone, and watch the rabbits overshoot and crash on their own.
This is the pattern in the Lotka–Volterra equations of the 1920s, and in the Hudson's Bay Company fur records, where Canadian lynx and snowshoe hare numbers rose and fell roughly every ten years.
How each animal lives
Rabbits nibble the grass under them and wander towards greener patches. Every step costs energy. A well-fed rabbit has a baby and gives it half its energy. A rabbit that sees a fox runs, or freezes if it is safe in a bush.
Foxes chase the nearest rabbit they can see, rest after a meal, and burn energy faster when it is hot work. A pale fox is a hungry fox. A fox with too many neighbours won't raise cubs: foxes keep territories.
Anything with no energy left dies. That is all. The waves are not written anywhere in the rules; they emerge from them.