Sub topic 3
Predictability, Surprise and the Limits of Analysis
This chapter assumes you can write loops, functions, dictionaries and sets in Python, and that you understand a game loop that updates state in ticks or turns. You have read the earlier chapters on emergence and tag-based systems.
Emergent systems are hard to predict. You can read every rule and still not know what a combination will do. Analysis helps, but it has limits. Playtesting, tuning and deliberate design fill the gap.
When emergence goes wrong: exploits and degenerate strategies
An exploit is a strategy that works because two rules interact in a way the designer did not intend. A degenerate strategy is an exploit that makes the game less fun, such as one move that always wins. Both come from the same source as good emergence, so you cannot remove one without considering the other.
Tuning rules and parameters
Tuning means changing numbers, such as rates, caps and thresholds, rather than changing rules. Small changes can flip a system from stable to runaway. In the income example below, interest and catch_up push in opposite directions. The gold lead grows when interest is high and shrinks when catch_up is high.
def income(gold, leader_gold, base=10, interest=0.05, catch_up=0.1):
"""Per-turn income: interest rewards wealth, catch_up rewards falling behind."""
return base + interest * gold + catch_up * (leader_gold - gold)
print(income(200, 200)) # 20.0
print(income(100, 200)) # 25.0Change one parameter at a time, then measure the effect over many turns.
Observing emergence through playtesting
Playtesting shows you what your analysis missed. Record what players do, not only whether they win. Look for moves that repeat, outcomes that never vary, and players who stop playing a certain way. Each surprise becomes a question about which rules interact.
Principles for designing for emergence
- Keep rules few and general, so their combinations stay understandable.
- Make every rule readable by its effect on shared state.
- Expect exploits, and test rule pairs before testing the whole game.
- Change one parameter at a time and record the result.
Exercise
In the income function, if catch_up is raised from 0.1 to 0.5, what does a player with 100 gold earn when the leader has 200 gold?
Show answer
10 + 0.05 × 100 + 0.5 × (200 − 100) = 10 + 5 + 50 = 65.0. The trailer's income rises sharply, which can shrink the lead too quickly.