Check that every player of a generated map starts with about the same amount nearby
A map made by chance can give one player a forest and a gold mine next door and another player bare ground. Players notice within a minute and quit. Here is a check that adds up what lies around each starting point and tells you whether the map is fair enough to use.
Why this works
A random map feels fair only if each player has about as much within reach, so measure just that around every start. Splitting what two players can both reach, and allowing a small difference instead of exact equality, matches how players judge it in practice.
When not to use it
Wrong for maps meant to be uneven, such as a strong king against many weak rebels, or a hand-made map you already balanced by eye. It counts only the amount nearby, so the kind of resource and the walk to it need their own look.
In the full entry
- What to build, step by step
- Starting values and the reason for each
- 4 common mistakes and the fix
- 17 lines of example code with 3 checks that pass
- How your AI shows you that it works
Say this to your AI
Use the Spielerando entry "Check that every player of a generated map starts with about the same amount nearby" (read_entry start-position-fairness-check) in my game. Build it step by step, and show me how you checked that it works.Or skip this and connect the MCP: your AI then finds all of this by itself.Connect the MCP