Sub topic 2
Negative feedback: pulling a system back toward balance
This chapter assumes you know what a game state is, can read a simple percentage formula, and have seen a stock (a value that builds up over time) in some form. The examples use Python.
Negative feedback
A negative feedback loop, also called a balancing loop, is a cycle where the system's output pushes its state back toward a target. The further the state moves from the target, the harder the loop pushes back. Each correction shrinks as the gap closes, so the system settles instead of running away.
def balancing(turns, target=100.0, strength=0.25, start=20.0):
health = start
history = [health]
for _ in range(turns):
health += strength * (target - health) # correction shrinks as the gap closes
history.append(health)
return history
print(balancing(5))Each turn, the correction is 25% of the gap to 100. The values rise quickly at first, then slow down as they near the target.
Snowballing and runaway leaders
Snowballing happens when a lead grows because of the lead itself. The leader earns more, which lets them earn even more. This is a positive (reinforcing) loop, and it drives the opposite of balance. Without a limit, the leader pulls away and the trailing player has little chance to recover.
Rubber banding and catch-up mechanics
Rubber banding adds a balancing loop to a race or contest so that trailing players receive help and leaders receive a penalty. The effect feels like a stretched elastic band pulling the pack back together. Designers use catch-up bonuses, handicaps or reduced income for leaders to keep matches close. Too much catch-up, however, can make skill feel meaningless.
Drawing loops with causal loop diagrams
A causal loop diagram (CLD) shows variables as nodes and cause-and-effect links as arrows. Each link carries a polarity: "+" means both variables move in the same direction, and "-" means they move in opposite directions. A loop with an odd number of "-" links is balancing. The diagram below shows the healing loop from the code above.
Exercise
In the diagram above, why is this loop balancing rather than reinforcing?
Show answer
It has one "-" link (Health to Gap). An odd number of minus links in a loop makes the loop balancing, so the gap shrinks as health rises.