reverse-ludo-logo

Play: ludo.d093w1z.com · Write-up: Reverse Ludo: Testing a House Rule With Bots Before Playing It With Friends

Ludo with one extra rule: a token may move backward along the track, mostly to capture someone who just passed it. Before playing it with friends, I measured which versions of that rule break the game, then built the one that held up into an online game.

reverse-ludo-game-phone

What it is Link to heading

  • Online multiplayer: rooms with invite links, 2–4 players, and bots in empty seats (easy, normal, and a hard bot with tuned weights).
  • Rules to pick in the lobby: Limited reverses (1–3 per game, recommended), Classic, Strike back, Sixes reverse, One reverse per token, plus experimental free-reverse rules.
  • Phone-first: one-handed Back / die / Forward controls, a board rotated so your colour is at the bottom, light and dark themes, sounds and vibration. Installs as an app on Android and iPhone.
  • Robust hosting: games survive server restarts, the host role passes on if the host leaves, idle rooms close themselves, and every game is saved as a replayable log.

The research behind it Link to heading

  • A rules engine with 10 variants of “move backward”, deterministic and replayable from a seed.
  • 8 kinds of bots, plus exploit probes that try to stall, camp or hunt.
  • Tournaments of hundreds to thousands of games per matchup, reported with 95% confidence intervals.
  • Result: “reverse on any roll” lets players stall forever; limited reverses survived every exploit probe and add the most real decisions per turn.

Built with Link to heading

  • Python 3 standard library only: engine, simulator, and the game server (HTTP + Server-Sent Events)
  • Plain HTML, CSS and JavaScript with an SVG board, as an installable PWA
  • Proxmox LXC + systemd, deployed by GitHub Actions with a self-hosted runner, behind a Cloudflare tunnel

The source code is private for now.