Spielerando

Characters slip through the gap between two diagonal walls

Your hero finds a path, but it walks straight through a spot where two wall pieces only touch at their corners. Here is the one extra rule that stops this, and what it costs the route.

Why this works

The map the character sees is made of solid things, but the search only knows which steps exist. A step between two walls that touch at a corner looks legal on paper, so the cure is to forbid that step before any route is built.

When not to use it

Skip it for tiny characters or open caves drawn freehand, where squeezing past a corner looks natural. There, allow the slip, or make walls thicker so corners never touch.

In the full entry

  • What to build, step by step
  • Starting values and the reason for each
  • 3 common mistakes and the fix
  • A diagram of every state
  • 59 lines of example code with 5 checks that pass
  • How your AI shows you that it works

Say this to your AI

Use the Spielerando entry "Characters slip through the gap between two diagonal walls" (read_entry path-no-corner-cutting) 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