Evolutionary ecology · game design

When to leave

The marginal value theorem, shown on a Sporeling cell grazing patches of food

Diminishing returns

Food runs out as it is eaten, so each second brings less

Slide to refills and every step stays the same height.

patch of foodcell if it refilledfood eaten

The trip counts

Counting the trip, a middle-length stay gets the most food per second

Short stays lose time to the trip; long ones sit on a nearly empty patch.

4 s trip4 s trip average, including the trip

The marginal value theorem

The best moment to leave is where the line just touches the curve

Leave inside the shaded part and the line gets steeper.

the trip food per secondfood eaten

Sparse dish, rich dish

The longer the trip between patches, the longer the cell should stay

Lengthen the trip: the touching point moves right and less is left uneaten.

food per secondfood eaten

The rule a cell can follow

Leave when the patch's food per second drops below the dish's average

Slide the line: the average is highest when the line meets the average bar's end.

rich patchpoor patch dashed ring: the food it leaves behind food per second →

Designing the dish

If food never runs out, never leave; if there is no trip, leave at once

With both, the best stay sits mid-graph: a real choice for the player.

average, including the trip

Recap

What the cell showed