What is a game economy simulation?
A model of how resources enter and leave your game, played many times with random rolls. Charlie Czerkawski's book on game economy design calls a source, or faucet, a way players receive currency, resources or goods created from nothing. A sink is a way the game removes them for good. Sinks are used to combat inflation and work together with sources.
Will Luton of Department of Play adds the pinch point. It is the balance where a resource is useful but scarce enough that players keep seeking it. When a tap produces faster than the sinks remove, an excess builds. "Any resource that is in excess becomes effectively worthless to the player and they stop interacting with the tap," Luton writes.
Sources: Game Developer, Book Excerpt: Game Economy Design (10 October 2024); Department of Play (22 November 2018).
Why simulate many players instead of doing the math once?
Because averages hide the unlucky and the lucky players. Machinations explains that a calculation turns a random problem into a fixed one by averaging over probabilities. Monte Carlo methods instead use repeated random sampling, based on the law of large numbers. In its dice example, only around 1,000 samples begin to look like the expected bell shape.
In Machinations' own example, 29 of 100 simulated Plays reached the goal within the budget, so the chance was about 30%. You want the same kind of number for your economy. How many players can afford the first upgrade on day 3, and how many are still short on day 10?
Sources: Machinations documentation, Monte Carlo Simulations; Machinations Learn, Running Plays and forecasts.
How do you get AI to build the simulation?
Give it every rule as a number and ask for code you can rerun. Anthropic lists algorithm execution or simulation among the cases where Claude runs code, and OpenAI says ChatGPT runs Python for calculations and statistics. Ask for named constants at the top. Then you change one number and run again, with no new question each time.
The steps below are our practice. Copy the template after them and replace the numbers with your own.
- List every source and sink with its amount, its frequency and what triggers it.
- Write the target, such as "most players reach upgrade 10 by day 7 without paying".
- Ask for a simulation of at least 1,000 players, with percentiles per day.
- Read the code line by line against your list; fix any rule the model guessed.
- Change one constant at a time and keep a note of each run and its result.
Prompt template: Monte Carlo simulation of a game economy
Write a Python Monte Carlo simulation of my game economy.
Rules (one step = one day of play):
- Source: each run pays 40 to 80 gold (uniform), 3 runs a day.
- Sink: upgrades cost 100 gold times the upgrade level (1 to 20).
- Sink: a 15 gold repair after each failed run; runs fail 35% of the time.
Simulate 2,000 players for 60 days. For each day, report the median,
10th and 90th percentile of gold held and upgrade level.
Print the day each percentile reaches upgrade 20.
Keep every number above as a named constant at the top of the file.Sources: Claude API documentation, Code execution tool; OpenAI Help Center, Data analysis with ChatGPT; our practice.
When should you use a tool like Machinations instead?
When designers who do not code need to change the model, or when the diagram itself helps the team talk. Machinations is a browser based tool. You map sources, pools and sinks in a diagram and run one Play or a Forecast of many. You compare scenarios by moving Levers and export results to CSV. Its Monte Carlo Forecasts run on Machinations' cloud servers.
A script from an AI tool is faster to start and easy to change, but only people who read code can work on it. Our practice: start with a script to test the idea, and move to a shared tool once several people tune the economy. The table compares the three options.
| Option | Good for | Limit |
|---|---|---|
| Spreadsheet | One resource with fixed rates, such as Department of Play's taps and sinks exercise | No random rolls, so it shows only the average player |
| AI-written Python script | Thousands of simulated players with random rolls, rerun in seconds | Only people who read code can change it |
| Machinations | A shared diagram, Levers for scenarios and Monte Carlo Forecasts in the cloud | Another tool for the team to learn |
Sources: Machinations documentation, What is Machinations?; Department of Play (22 November 2018); our practice.
How do you know the simulation matches real players?
Compare it with logged sources and sinks from a playtest or a live build. Simulated players follow your rules exactly. Real ones skip upgrades, grind one mode or find an exploit.
Log every gain and spend with its amount and reason. Then ask your AI tool to put the real daily median and percentiles next to the simulated ones. A large gap means a rule in the model is wrong, or players found a faster source than you planned.
- Detect game exploits and economy bugs with event data →
- Free to play vs premium on Steam: margin, churn and LTV →
Sources: our practice.
Is this workflow available as an agent skill?
Not as a skill. None of the free, open-source game marketing skills builds an economy model, so use the prompt in this guide in your own agent.
The Manalens Agent can check the model against real players. Ask it for the daily count of your currency events, such as gold_earned and gold_spent, and it answers from your game's own events. It does not change your economy.
Sources: game-marketing-skills README; Manalens Agent documentation.
How to measure the result
Manalens is the analytics and growth engine built for games. Its app event conventions include a resource event with flow (source or sink), currency, amount and item. For example, send Manalens.track("resource", {"flow": "sink", "currency": "gold", "amount": 50, "item": "sword"}) in Godot. The Agent can count these events. On the Studio plan, the SQL Explorer or SQL through the MCP server can sum gold earned and spent per player per day, to compare with your simulation.
Sources: Manalens Godot SDK, app event, Explorer, Agent and MCP server documentation.
Frequently asked questions
Can ChatGPT or Claude simulate my game economy?
Yes, if you give every rule as a number. Both can write and run Python, so ask for a Monte Carlo simulation of many players with percentiles per day. Read the code against your rules before you trust a result, because the model may fill a missing rule with a guess that looks reasonable.
What is the difference between a source and a sink?
A source, also called a faucet or tap, gives players currency, resources or goods created from nothing, such as gold for finishing a level. A sink removes them for good, such as an upgrade cost or a match entry fee. When sources outpace sinks, the resource loses value and players stop caring about it.
How many simulated players do I need?
Enough that the results stop moving when you run again. In Machinations' dice example, only around 1,000 samples begin to look like the expected bell shape of the sum of two dice. Our practice: start with 1,000 simulated players, run again, and double the number if the percentiles still change between runs.
Do I need Machinations if I can ask an AI to code the model?
Not to start. A script from ChatGPT or Claude is quick to make and change. Machinations helps when designers who do not code tune the economy together, because it shows sources, pools and sinks as a diagram, compares scenarios with Levers and exports results to CSV.
How accurate is an AI economy simulation?
As accurate as the rules you give it. Simulated players follow your rules exactly, while real players skip upgrades, grind one mode or find exploits. Our practice: log every gain and spend in a playtest, compare the real daily median and percentiles with the simulated ones, and fix the rule behind any large gap.
Can I model my economy in a spreadsheet instead?
Yes, for a first pass. Will Luton of Department of Play suggests finding the taps and sinks in a game and building a spreadsheet to model them. A spreadsheet shows the average player only. Move to a Monte Carlo script once random drops or failure rates make players spread far apart.
Sources and implementation
- Game Developer: Book Excerpt: Game Economy Design (Charlie Czerkawski, 10 October 2024, read 26 November 2026) ↗
- Department of Play: The Principles of Building A Game Economy (Will Luton, 22 November 2018, read 26 November 2026) ↗
- Machinations documentation: Monte Carlo Simulations (read 26 November 2026) ↗
- Machinations Learn: Running Plays and forecasts (read 26 November 2026) ↗
- Machinations documentation: What is Machinations? (read 26 November 2026) ↗
- Claude API documentation: Code execution tool (Anthropic, read 26 November 2026) ↗