• Mahmoud Aglan's avatar
    fix(ludo): online boards stay in sync; rules, bots, rewards; flat board · 4ce3d90f
    Mahmoud Aglan authored
    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: 's avatarClaude Opus 5.5 <noreply@anthropic.com>
    4ce3d90f
rules.js 11.9 KB