• Mahmoud Aglan's avatar
    fix(backgammon): forced moves, variant rules, online sync, bot payouts · a855527a
    Mahmoud Aglan authored
    Rules: move generation is rewritten so both dice must be played when they
    can be, otherwise the larger. 31 used a long-backgammon setup and allowed
    pins; it now starts like mahbousa, a single checker closes a point and the
    winner scores the loser's remaining checkers (lengths 1/11/21/31).
    Mahbousa could freeze forever when both starting stacks were pinned; the
    plakoto mother rule now settles it. Turning the cube off lasted one game,
    taking the bot's double froze the game, and a player on black saw the
    board upside down with a swapped score.
    
    Online: a poll could wipe unsent moves, the cube never synced, 'opponent'
    was sent as the winner id, and a refreshed tab rejoined as white. Online
    is now a numbered move log plus a snapshot; the other side replays the log
    with animation and checks it matches. Timers stop when the scene closes.
    
    Bot games get a server match row (action start) and complete pays the
    creator once; a row under 90 s old closes with no payout.
    
    Look: flat teal board, red and white points, checkers on a lip, flat dice
    and cube. backgammon-rules 659/659 (brute-force cross-check); browser
    suite 122 + online 39/39 + layout 20/20, zero console errors.
    Co-Authored-By: 's avatarClaude Opus 5.5 <noreply@anthropic.com>
    a855527a
Name
Last commit
Last update
.claude Loading commit data...
.impeccable Loading commit data...
ChessPieces Loading commit data...
Connections and docs Loading commit data...
Logo El3ab Loading commit data...
admin Loading commit data...
api Loading commit data...
app icons Loading commit data...
config Loading commit data...
docs Loading commit data...
includes Loading commit data...
ludo-playtest Loading commit data...
migrations Loading commit data...
promo Loading commit data...
public Loading commit data...
screenshots Loading commit data...
test-screenshots Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.htaccess Loading commit data...
ARCHITECTURE.md Loading commit data...
ASSET_REGISTRY.json Loading commit data...
ASSET_REGISTRY.md Loading commit data...
BUILD_ORDER.md Loading commit data...
DATABASE_REFERENCE.md Loading commit data...
DESIGN.md Loading commit data...
Dockerfile Loading commit data...
FIX_PLAN.md Loading commit data...
HANDOVER.md Loading commit data...
MULTIPLAYER_RULES.md Loading commit data...
PLAN.md Loading commit data...
PRODUCT.md Loading commit data...
ROADMAP.md Loading commit data...
Stockfishbotsapi.txt Loading commit data...
WTF.md Loading commit data...
backgammon-test.mjs Loading commit data...
bell.png Loading commit data...
captain-definition Loading commit data...
chess-browser-test.mjs Loading commit data...
chess-multiplayer-test.mjs Loading commit data...
chess-sync-test.mjs Loading commit data...
domino-test.mjs Loading commit data...
index.php Loading commit data...
logof.png Loading commit data...
manifest.json Loading commit data...
package-lock.json Loading commit data...
package.json Loading commit data...
privacy-policy.php Loading commit data...
qr-code.png Loading commit data...
terms.php Loading commit data...
test-tournament-swiss.mjs Loading commit data...
test-tournament-ui.mjs Loading commit data...