Spielerando

Two players' games slowly drift apart without any lost message

If both computers run the same game from the same inputs, they should always agree. They do not, because tiny rounding differences in decimal numbers add up until a character stands in two places. Doing movement in whole numbers makes the results identical everywhere. Here is the number format and the rounding rule that must never change.

Why this works

Two computers only stay in step if every calculation gives the same answer on both. Whole numbers are exact and decimals are rounded in ways that can differ slightly, so removing decimals from the world removes the tiny differences that grow.

When not to use it

You do not need it if one host runs the world and everyone else only watches, since there is just one truth. Whole numbers make the math clumsy, so keep ordinary decimals there.

In the full entry

  • What to build, step by step
  • Starting values and the reason for each
  • 3 common mistakes and the fix
  • 22 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 "Two players' games slowly drift apart without any lost message" (read_entry online-whole-number-math-so-both-computers-agree) 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