Sub topic 4
Dynamics: what happens when the rules run
Prerequisites and scope
This chapter assumes you have read the previous chapter on mechanics. You should know that mechanics are the rules, algorithms, and data of a game. You should also be able to read short Python functions. The chapter covers the middle layer of MDA: dynamics. It explains what dynamics are, how to tell them apart from mechanics and aesthetics, and how to measure one with a small simulation.
What a dynamic is
A dynamic is a pattern of behavior that appears when the mechanics run, usually with players making choices and with randomness mixed in. A rule is written down in advance and does not change during play. A dynamic only exists while the game is being played. You cannot point to it in the rulebook or the source code.
Some examples:
- "Players trail off in the late game" is a dynamic. No rule says it.
- "The leader keeps getting further ahead" is a dynamic.
- "Players form temporary alliances against whoever is winning" is a dynamic.
- "Most matches end within eight turns" is a dynamic.
Each of these is a statement about many turns, many players, or many matches. A mechanic can be stated in one line of code. A dynamic needs a description of behavior over time.
The mechanic and dynamic for the same game sit at different levels, as this table shows.
| Question | Mechanic | Dynamic |
|---|---|---|
| Where does it live? | In the rules and code | In play sessions |
| Can you read it before playing? | Yes | No, you must run or play the game |
| Is it deterministic? | Usually | Often statistical |
| Example | A trailing racer gets a speed bonus | Lead changes happen about ten times per race |
Where dynamics come from
Three ingredients produce dynamics:
- Mechanics. The rules set what is possible and what is rewarded.
- Player decisions. Players pick strategies, exploit rules, cooperate, or bluff.
- Chance and starting conditions. Dice, shuffled decks, and random spawns vary from game to game.
The same mechanics can give different dynamics with different players. A rule set that produces careful, slow play among cautious players might produce reckless rushes among competitive ones. This is why you cannot fully predict a dynamic by reading the rules.
Describing a dynamic precisely
Vague descriptions such as "the game feels tense" belong to the aesthetics layer. A useful dynamic description names something you could observe and, ideally, count. Compare these:
| Vague | Observable |
|---|---|
| The race is close | The gap between racers at the finish is small |
| The game has comebacks | A player who is behind at the midpoint wins in a meaningful share of matches |
| Players are not bored | No player is eliminated before the halfway point |
Observable statements let you test a design. If you can say "lead changes should be frequent," you can write code or run playtests to check whether they are.
A mechanic, then its dynamic
The following function is a mechanic. It is a small algorithm with explicit parameters, and a designer can change any of them.
def racer_speed(base_speed, gap_behind_leader, boost_per_unit=0.05, max_boost=0.3):
"""Mechanic: a trailing racer gets a speed bonus proportional to the gap, capped at max_boost."""
gap = max(gap_behind_leader, 0.0)
boost = min(gap * boost_per_unit, max_boost)
return base_speed * (1 + boost)Reading it, you can predict a single call. With a base speed of 1.0 and a gap of 4 units, the boost is 0.2 and the speed is 1.2. That is a mechanic-level fact. It does not tell you whether races will be close, how often the lead will change, or whether the boost makes the game feel fair or artificial. Those are dynamic questions, and they depend on how the rule interacts with random speeds over a whole race.
Measuring a dynamic with a simulation
A simulation lets you run the rules many times and count what happens. The next program races two racers for 100 steps, once without the catch-up rule and once with it. It records two numbers: how many times the leader changed and how far apart the racers were at the end.
import random
def simulate_race(catch_up, steps=100, seed=1):
rng = random.Random(seed)
pos = [0.0, 0.0]
leaders = []
for _ in range(steps):
for i in range(2):
gap = max(pos[1 - i] - pos[i], 0.0)
base = rng.uniform(0.8, 1.2)
boost = min(gap * 0.05, 0.3) if catch_up else 0.0
pos[i] += base * (1 + boost)
leaders.append(0 if pos[0] > pos[1] else 1)
lead_changes = sum(1 for a, b in zip(leaders, leaders[1:]) if a != b)
return lead_changes, abs(pos[0] - pos[1])
for flag in (False, True):
print("catch_up =", flag, "->", simulate_race(flag))The output is two tuples of the form (lead_changes, final_gap). The exact numbers depend on the seed and the Python version's random generator, so run it yourself. What matters is the pattern. With the catch-up rule on, you should generally see more lead changes and a smaller final gap than with it off. Those two numbers are the dynamics you chose to measure.
Edge cases and common errors
- One run is not a result. The simulation uses a fixed seed so that it is repeatable. A single seed gives a single story. To make a claim about a dynamic, run many seeds and compare averages or distributions.
- Measure the right thing. Lead changes can be high when two racers are nearly tied and swap places constantly. That is a lot of change but not necessarily tension. Pair a count with a second measure, such as final gap.
- The simulated players are simple. Both racers here follow fixed rules with no strategy. Real players may exploit a catch-up rule, for example by slowing down on purpose to gather a boost. A simulation shows dynamics for the behavior you modeled and nothing else.
- Order of updates matters. In the code, racer 0 moves before racer 1 sees the new position. Such a detail can bias results slightly. If your game updates simultaneously, model it that way.
- Confusing a rule with its effect. "Catch-up exists" is a mechanic. "Races are close" is a dynamic. If your design document mixes them, you cannot tell which one to change when something goes wrong.
Emergence and feedback
Dynamics are often emergent, meaning they arise from rules interacting rather than from any single rule. Nobody writes "lead changes happen often" into a racing game. It results from speed rules, randomness, and a catch-up bonus acting together.
Many dynamics involve feedback loops. A negative loop, like the catch-up bonus, pushes the game back toward balance. A positive loop, such as earning money that buys more earning power, pushes it away. The later chapter on feedback loops covers these in detail. For now, treat the feedback loop as one of the most common sources of dynamics, and note that you can see its effect only by running the game.
Dynamics sit between rules and feelings
Dynamics connect the other two layers. Players do not feel rules directly. They feel what the rules produce. A close finish creates excitement, and a runaway leader creates frustration or boredom. That emotional response is the aesthetic layer. A designer who wants a particular feeling therefore chooses dynamics that support it, and then looks for mechanics that produce those dynamics.
The design chain below records this explicitly so each layer can be tested on its own.
design_chain = {
"aesthetic_goal": "challenge: close, tense races",
"target_dynamics": ["lead changes happen often", "no player is ever hopelessly behind"],
"candidate_mechanics": ["catch-up speed boost for trailing racers", "item drops weighted toward trailing racers"],
}
for layer, value in design_chain.items():
print(layer, "=", value)Notice that the middle entry is a list of observable statements. Each one can become a measurement in a simulation or a question for a playtester.
A checklist for reasoning about dynamics
- Write the target dynamic as an observable statement.
- Pick a number that measures it, such as lead changes, match length, or final gap.
- Run the game or a simulation with the mechanic on and off.
- Repeat across many seeds or many sessions.
- Check whether players behave the way your model assumed.
- Change one mechanic parameter at a time and measure again.
Exercise
A designer says, "Our card game has a rule that draws two cards at the start of each turn. The dynamic is that players draw two cards." What is wrong with this, and what would be a real dynamic that this rule might contribute to?
Show answer
Drawing two cards each turn is a mechanic, because it is a rule written in advance that does not depend on how the game plays out. A dynamic is behavior that appears across play, for example "hands fill up and players are often forced to discard," "games speed up as players find combinations sooner," or "players run out of cards in the deck by turn 15." Each of these is observable only by playing or simulating the game.
Exercise
In the race simulation, you run simulate_race(True, seed=s) for 500 different values of s and average the final gap. Why is this better than reporting the result for seed 1 alone?
Show answer
A single seed is one random sample, so its lead changes and final gap might be unusual. Averaging over many seeds shows the typical dynamic and its spread. This lets you judge whether the catch-up mechanic reliably produces close races, rather than seeing it work or fail by luck.