Spielerando

Fix the "please update the app" check that thinks version 1.9 is newer than 1.10

The game should ask old versions to update, but comparing version numbers like text puts one-point-nine after one-point-ten, so the wrong people get the message or nobody does. This entry shows how to make the AI compare version numbers by their parts.

Why this works

A version number is not a word and not a decimal, it is several separate counters. Each part grows on its own, so comparing them one by one from the left gives the order that the people who numbered the versions meant.

When not to use it

Skip it if your versions are dates or build numbers rather than dotted parts, where plain number comparison is right. A store that already tells you which version is current is better than guessing it yourself.

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
  • 26 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 "Fix the "please update the app" check that thinks version 1.9 is newer than 1.10" (read_entry version-check-says-1-9-is-newer-than-1-10) 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