fix(ludo): online boards stay in sync; rules, bots, rewards; flat board
Online: at speed a client's writes trail its own board, and a stale-row
check read that lag as a stale row, reset the client and let it play again
from the older board: two writers with one sequence number. The check now
fires only with nothing in flight, every write is dropped while a resync
is pending, and a resync takes the row's sequence. The quiet-player notice
shows for each new silence, not once per match.
Rules: in 3-4 player games the first finisher kept a turn nobody could
take and the game stalled; three sixes is enforced and no longer carries
into the next turn. Seats come from the match, not the room. Exactly one
client settles a match, with real ids. Bots score their moves by
difficulty. A leaver is announced and in a duel the one who stays wins.
Names in the roll button are escaped.
Look: flat quadrants on white, pawns on a lip, a flat tumbling die.
tests/play/ludo.mjs 73/73 (local 4, duel, online), ludo-rules 60/60.
Co-Authored-By:
Claude Opus 5.5 <noreply@anthropic.com>
Showing
This source diff could not be displayed because it is too large. You can view the blob instead.
tests/play/ludo-rules.mjs
0 → 100644
tests/play/ludo.mjs
0 → 100644
Please register or sign in to comment