Sub topic 13
Checking the Curve with Simulation and Playtests
Assume you know basic game design terms such as stats, abilities, tiers, and resources. You should also be comfortable with simple arithmetic and short Python programs. This chapter uses those skills to test whether a cost curve predicts real game performance.
Treat the curve as a hypothesis
A cost curve maps estimated power to a cost. For example:
cost = scale × power^exponentThe formula is a model, not proof that two options are balanced. A unit with twice the estimated power may be fairly priced, but its actual performance can change because of range, map layout, counters, timing, or player decisions.
Validation compares three things:
- Predicted power from the curve
- Simulated performance under controlled conditions
- Observed performance in playtests
A useful validation process keeps the curve fixed while testing content. Otherwise, you may adjust the formula to explain every result without learning whether the original model worked.
Simulation: control one variable at a time
A simulation is a repeated computer experiment. It is useful for checking arithmetic and exposing large errors before a playtest.
Suppose two units fight directly. Their power scores are estimates, and random combat variation represents imperfect conditions. The following program runs many matches and reports each unit's win rate:
import random
random.seed(7)
units = {
"Archer": {"power": 16, "cost": 10},
"Knight": {"power": 30, "cost": 20},
}
def fight(first, second):
first_roll = random.gauss(first["power"], first["power"] * 0.10)
second_roll = random.gauss(second["power"], second["power"] * 0.10)
return first_roll > second_roll
trials = 10_000
wins = {name: 0 for name in units}
for _ in range(trials):
if fight(units["Archer"], units["Knight"]):
wins["Archer"] += 1
else:
wins["Knight"] += 1
for name in units:
rate = wins[name] / trials
efficiency = units[name]["power"] / units[name]["cost"]
print(f"{name}: win rate={rate:.3f}, power/cost={efficiency:.2f}")This model is intentionally limited. It does not include movement, targeting, range, or team composition. Its result answers only a narrow question: how often does each unit win in this controlled matchup?
Run several matchup types. Include equal-cost comparisons, counters, team battles, and different starting conditions. Record the random seed and assumptions so that another designer can reproduce the result.
Playtests: measure behavior, not just opinions
Human playtests reveal factors that a simulation may omit. Measure concrete outcomes such as:
- Win rate by unit, faction, map, and player skill
- Pick rate and ban rate
- Damage, survival time, or resource generation
- The time at which an option becomes useful
- Whether players identify and use its intended drawback
Separate balance data from preference data. A unit can have a low pick rate because it is weak, difficult, or unattractive. Those causes require different fixes.
| Signal | Possible interpretation |
|---|---|
| High win rate and high pick rate | Likely overpowered or too broadly useful |
| High win rate and low pick rate | Strong but difficult, hidden, or unpopular |
| Low win rate and high pick rate | Popular, familiar, or appealing despite weakness |
| Low win rate and low pick rate | Weak, niche, or poorly presented |
Find systematic errors
Compare observed performance with the curve's prediction. If expensive units consistently underperform, their stat values may be inflated. If cheap units consistently outperform, the exponent or a missing synergy may be responsible.
A single outlier does not always justify changing the curve. First check implementation errors, unusual matchups, and sample size. Change the model when the same error appears across several independent tests.
Exercise
A unit has an expected power-to-cost ratio of 1.5. In three separate playtest groups, it performs 12%, 15%, and 14% better than comparable units. Should you immediately change the exponent?
Show answer
No. First verify the data, matchups, and implementation. The repeated advantage is evidence that the unit or its valuation needs investigation, but it does not identify whether the cause is its stats, a synergy, or a context-specific advantage.