Sub topic 3
What a Feedback Loop Is
Assume you know the basic rules of a strategy, racing, card, or board game. You should also be comfortable with percentages and simple arithmetic. Python is optional.
A feedback loop is a cycle in which the current game state affects a player's action, and that action changes the state again. The changed state then affects the next action. This creates a repeating pattern:
- A player takes an action.
- The action changes the game state.
- The new state changes the player's options or incentives.
- The player acts again under those changed conditions.
For example, collecting gold may let a player buy a stronger unit. The stronger unit may win more battles, which earns more gold. The result of one action changes the conditions for the next action.
Reinforcing and balancing feedback
Feedback loops usually fall into two useful categories.
A reinforcing loop strengthens the direction in which the system is already moving. A lead tends to become a larger lead, or a loss tends to become a larger loss. Game designers often call this positive feedback, although “positive” does not mean good.
A balancing loop pushes against the current direction. A player who falls behind receives an advantage, or a player who gets too far ahead faces a limitation. This is also called negative feedback. “Negative” means corrective, not harmful.
| Loop type | Effect of the current state | Common game result |
|---|---|---|
| Reinforcing, or positive | Makes the current advantage or disadvantage stronger | Snowballing and runaway leaders |
| Balancing, or negative | Reduces the gap or pushes the state toward a target | Catch-up and controlled pacing |
The important question is not whether a loop is positive or negative. Ask what it does to the game over time.
A simple game example
Imagine a game where a player's income is 10 percent of their current gold. A player with more gold receives more income, so the gap grows even when both players receive the same percentage.
def reinforcing(turns, rate=0.10, start=10.0):
gold = start
history = [gold]
for _ in range(turns):
gold += rate * gold
history.append(gold)
return history
print(reinforcing(5))The change depends on the current stock of gold. This is a reinforcing loop:
- More gold produces more income.
- More income produces more gold.
- The larger stock produces still more income.
A balancing loop uses the opposite relationship. Suppose a player's health moves 25 percent of the way toward a target of 100 each turn. When health is far below 100, the correction is large. As health gets closer, the correction becomes smaller.
def balancing(turns, target=100.0, strength=0.25, start=20.0):
health = start
history = [health]
for _ in range(turns):
health += strength * (target - health)
history.append(health)
return history
print(balancing(5))This loop approaches the target instead of accelerating away from it.
Exercise
A racing game gives the last-place car a small speed boost based on the distance from the leader. Is this reinforcing or balancing feedback, and why?
Show answer
It is balancing feedback. The larger the gap, the stronger the correction, so the mechanic pushes the cars closer together.