I click on the broken road tile but my AI cannot tell which tile I mean
Saying the road near the river is broken sends your AI searching. This entry gives your AI a click-to-tile converter for slanted maps, so every bug report can carry exact coordinates, including clicks left of and above the map.
Why this works
A diamond-shaped map is a grid turned by 45 degrees and squashed. Undoing the turn gives two numbers whose whole parts are the tile, and rounding the wrong way is what moves clicks near the edge to the neighbour.
When not to use it
Skip it for maps drawn as plain squares; there the tile is the click divided by the tile size. Also skip it if your game already prints tile coordinates on hover.
In the full entry
- What to build, step by step
- Starting values and the reason for each
- 3 common mistakes and the fix
- 27 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 "I click on the broken road tile but my AI cannot tell which tile I mean" (read_entry strategy-tell-ai-which-tile-is-broken) 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