Spielerando

Monte Carlo simulator

Plays a game rule thousands of times and reports what usually happens, how far results spread, and the worst cases it saw. It is for rules too tangled to work out by hand.

When you need it

For balancing questions with many moving parts: how long does this boss fight last, can a player go broke, how much gold does a run give. Because it runs from a seed, your AI can repeat the same numbers and replay the worst run, so the report works as proof you can look at, along with how sure the numbers are.

Say this to your AI

Use the Monte Carlo simulator from Spielerando to play my boss fight 10,000 times. Show me the average length, the worst case with its seed, and how sure the numbers are.

Or skip this and connect the MCP: your AI then finds all of this by itself.Connect the MCP

Settings

Your AI gets the code

The finished code and math come through the Spielerando connection, so your AI can use them right away. Connect your AI

Common questions

how do i balance my game with math

When a rule has too many parts to work out, play it thousands of times with a program and look at the numbers. You see the typical result, the spread and the worst that came up, instead of judging from a few test games.

how many times should i simulate

Ten thousand is a good start. The report says how close the average is to the truth. Four times the runs only give half the error, and rare events need many more.

can a simulation show something can never happen

No. It only shows what came up. If something must never happen, use a walk through all states, which can show that. A simulation is for how often things happen.