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.
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.
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.
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.
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.
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.
Recap
What the cell showed
- As a patch is eaten, each second brings less food
- Counting the trip, a middle-length stay is best
- Best time to leave: the line just touches the curve
- A longer trip means a longer stay, less left uneaten
- Leave when the patch's food per second drops below average
- No running out: never leave. No trip: leave at once