Back to Blog
balancingsimulationeconomytooling

Ten Thousand Fake Players: Simulating Your Balance Before Anyone Plays It

A short script that reads your data tables and plays your fight or economy a few thousand times will find the broken build before your players do. How to scope a balance sim, sweep parameters and read the distribution instead of the mean.

GameDesignerX TeamNovember 27, 20267 min read

A player posts a spreadsheet in your Discord during launch week. The Rusted Dagger — the weapon you handed out in the tutorial — out-damages the Greatsword against every armoured enemy past the second zone, because a late patch gave its poison tick the ability to stack and poison ignores armour. The maths was always there, sitting in your data tables. Nobody ever ran it.

A balance simulation is the cheapest insurance against that discovery. Not a research project, not a second engine: a short script that reads your numbers, plays a stripped-down version of your fight or your economy a few thousand times, and prints a distribution. For most small teams it is an afternoon of work that keeps paying out for the rest of the project.

What a balance sim actually is

A sim is a model of the decision loop you are trying to balance, with everything else deleted. If you are balancing weapons, the model is: pick target, swing on a timer, apply modifiers, reduce HP, record time-to-kill. There is no animation, no collision, no pathfinding, no rendering. You are not simulating your game. You are simulating your arithmetic.

That distinction decides what goes in:

Layer Model it Fake it
Damage, armour, resistances, crit Yes — this is the subject —
Cooldowns, cast times, attack intervals Yes — timing changes everything —
Player skill — One or two fixed policies (optimal, sloppy)
Movement and positioning — A hit-rate multiplier, e.g. 0.8
Item drops, shop stock Yes, if economy is the subject A flat gold/hour if combat is the subject
Animation, VFX, audio — Delete entirely

The most common failure is modelling too much. A sim that needs your real combat code to run will rot the first time someone refactors. A sim that reads a CSV of weapon stats and 60 lines of logic will still run in a year.

Where the numbers should come from

Point the sim at the same data your build reads. If your weapons live in a spreadsheet or a balance and economy sheet in GameDesignerX, export that to CSV or JSON and have the sim parse it. The moment designers have to retype values into the sim, the sim starts lying — and it will lie quietly, which is worse than crashing.

Step 1: write the question before the code

"Is my game balanced?" is unanswerable. These are answerable:

  • Does every weapon in the roster stay within ±20% time-to-kill of the median against the enemies in its zone?
  • Can a player who buys no optional upgrades still clear the final boss within 90 seconds?
  • At hour 20, how much gold does the median player have, and the unluckiest 10%?
  • What percentage of 10,000 roguelike runs end because of HP loss versus the timer?

Each names an output metric and a threshold. Write it at the top of the script; it stops the sim becoming a toy you poke at.

Step 2: sweep, don't spot-check

The point of a sim is not to confirm one build. It is to run the same model across a range of inputs and look for places where the ordering flips.

Take three weapons and a dummy with 1,200 HP, where armour subtracts a flat amount per hit:

  • Rusted Dagger — 6 damage, 0.35s interval, poison 3 damage per 2s (ignores armour)
  • Iron Sword — 14 damage, 0.70s interval
  • Greatsword — 34 damage, 1.50s interval

Sweep armour from 0 to 20 and the picture changes completely:

Armour Dagger DPS Iron Sword DPS Greatsword DPS
0 18.6 20.0 22.7
8 4.4 8.6 17.3
20 (poison stacks ×5) 10.4 1.4 9.3

At zero armour the three weapons sit within 20% of each other — exactly the spread you wanted. At 8 armour, flat reduction has gutted the dagger (6 − 8 clamps to a 1-damage minimum) and the greatsword is four times better. At 20 armour, once poison can stack five times, the dagger is the best weapon in the game and the iron sword is unusable. Time-to-kill on that 1,200 HP dummy goes from 64 seconds with the dagger at zero armour to 275 seconds at 8 armour. Nobody plays through a 275-second trash fight; they refund.

A sweep finds this in one run. Hand-testing finds it when a player writes it up.

Step 3: read the distribution, not the mean

Averages hide the complaints. Run the model a few thousand times with randomness live and report percentiles instead.

An economy example. Say your 20-hour action RPG has these flows: combat drops average 420 gold/hour, selling junk adds 180, repairs cost 90, consumables cost 140. Net is 370 gold/hour, so 7,400 gold across the game. Your three tier upgrades cost 2,500, 6,000 and 14,000 — a total of 22,500. The deterministic model already tells you the median player can afford one and a half upgrades, not three.

Now add variance. Suppose one rare drop is worth 3,000 gold at a 1% chance per hour of play. Averaged out that is only 600 gold across the campaign — an 8% bump, invisible in a mean. But roughly four players in five never see it at all, and the ones who do finish about 40% richer: they buy the second-tier upgrade halfway through, while the unlucky majority are still saving for it at the credits. That gap may be exactly what you want in a roguelike and poison in a linear campaign — but you can only choose deliberately if you are looking at p10 and p90 rather than the average.

Step 4: keep the agent honest

Every sim contains a player model, whether you wrote one or not. The default — attack on cooldown, never dodge, never retreat — flatters weapons with long windups and punishes anything that needs positioning. Run at least two policies and compare:

  • Optimal: always uses the best available action, never wastes a cooldown, lands 100% of hits.
  • Sloppy: lands 75% of hits, reacts 250ms late, forgets one buff in four.

If a weapon is top-tier under the optimal policy and bottom-tier under the sloppy one, you have found a skill-expression curve, not a bug. If the ordering is identical under both, your mechanic probably has no depth to express.

A checklist before you trust a sim

  • The question and its threshold are written at the top of the script.
  • The sim reads the same data file the build reads — no retyped numbers.
  • Every value the sim invents (hit rate, encounter length, gold/hour) is listed as an assumption.
  • You ran a sweep, not a single configuration.
  • Output includes p10, median and p90, not just the mean.
  • At least two player policies were tested.
  • One result was checked against a real playtest recording before you shipped a change.

That last line is the important one. A sim tells you where the arithmetic breaks; it cannot tell you whether a 69-second boss fight feels tense or tedious. Pair it with real sessions — log the build number and the data-table version alongside your playtest notes, so when a tester says "the second boss got harder", you can tell which balance pass they actually played.

Make it a habit, not a rescue mission

Teams usually write their first sim in a panic, three weeks before launch, when a forum thread proves something is broken. Written early, the same script is a design tool: you change a cooldown from 8s to 6s, re-run, and see that it moves one build from 42% to 71% of the roster's median damage before anyone spends a day implementing it.

Store the sim next to your balance and economy sheets, re-run it at every milestone, and record the result in your decision log with the numbers attached. The payoff is not a perfectly balanced game — that does not exist. It is that the next spreadsheet posted in your Discord tells you something you already knew.