• Mahmoud Aglan's avatar
    feat: Chess.com-style smart tap-to-move controls for backgammon · 1c68160e
    Mahmoud Aglan authored
    Smart behaviors:
    - Auto-roll dice at start of each turn
    - If only one move exists for a piece, execute immediately on tap
    - If only one complete sequence possible, auto-execute entire turn
    - Auto-end turn when no moves remain
    - Movable pieces highlighted with golden glow (tap targets)
    - Tap piece → valid destinations highlighted → tap destination → done
    - Undo button for unlimited undo before turn ends
    
    UX flow:
    1. Dice auto-roll
    2. Movable sources highlighted
    3. Tap source → if single destination, auto-move
    4. If multiple destinations → show targets → tap one
    5. Repeat until dice exhausted
    6. Turn auto-ends
    
    Minimal taps, zero rules knowledge needed, fast animations.
    Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
    1c68160e
backgammon-game.js 15.4 KB