🧠 Reward Schedule Lab: How Games Shape Player Behaviour

2D interactive simulation · educational model
The science

Schedules of reinforcement (Ferster & Skinner 1957). Fixed ratio FRn: every n-th response pays. Variable ratio VRn: each response pays with probability 1/n (mean n). Fixed interval FIn: the first response after n s since the last reward pays. Variable interval VIn: as FI but the wait is exponential with mean n s.

Learning rule. The agent keeps a value Vb for each time-since-reward bin b (2 s wide), updated on every response by the Rescorla-Wagner rule V ← V + α(R − V), R = 1 if rewarded else 0. After k rewarded updates from V = 0: V = 1 − (1 − α)k. Response rate in a bin is r = r0 + rmax·V/(V + K) with r0 = 0.01, rmax = 2.5 responses/s, K = 0.15: invented constants chosen to give human-button-pressing rates, not fitted to data.

Extinction. Rescorla-Wagner alone predicts that an intermittently rewarded behaviour dies faster than a continuously rewarded one, the opposite of the observed partial-reinforcement extinction effect. So the agent adds a discrimination factor F = exp(−max(0, s − smax)/(smax + 3)), where s is the current run of unrewarded responses and smax the longest recent run it was rewarded after (starts at 25 for a naive learner and on each reward becomes max(s−1, 0.85·smax); Mowrer & Jones 1945 discrimination hypothesis). Behaviour fades when the drought is unlike anything it has learned.

What the curves show. Ratio schedules give steady responding because each response is a chance of pay; fixed intervals give a scallop (responses bunch late in the interval) because early responses are never paid; real animals show a sharper scallop and a clearly higher ratio-than-interval rate than this deliberately simple learner does; VI gives moderate steady rates; the reward rate under VI is capped near 1/(n + wait), however hard the agent presses.

Honest simplifications. One agent, no satiation, no cost of effort, no individual differences; a fixed 0.1 s time step; real learners also adapt to reward size and delay. Understanding reward schedules is useful for designers and for noticing when a game is nudging you to keep playing: this lab is educational, not a design recipe for compulsion loops.