• Mahmoud Aglan's avatar
    feat: PHASES 3-9 complete — game feel, bot personalities, chess polish, infrastructure fixes · 4de6634a
    Mahmoud Aglan authored
    PHASE 3 - Ludo Game Feel:
    - Bot personality profiles (aggressive/casual/strategic per player)
    - 'يفكر...' thinking indicator during bot turns
    - Vertical bounce effect during piece hops (-2px offset)
    - Star burst particles on piece finish
    - Move preview: ghost circles showing destination for each valid move
    
    PHASE 4 - Bot Personalities:
    - Blue (aggressive): 0.5-1s think, always captures
    - Yellow (casual): 1.5-3s think, sometimes suboptimal
    - Green (strategic): 1-2s think, always optimal
    
    PHASE 6 - Infrastructure Fixes:
    - net.js: removed duplicate realtime code, fixed infinite refresh loop
    - realtime.js: exponential backoff (1s→30s), error logging, connection guard
    - bus.js: try-catch per listener (one bad listener doesn't break others)
    
    PHASE 7 - Chess Polish:
    - Draw offer implemented (bot: 50% accept, live: sends to server)
    - Clock fixed: uses performance.now() delta (no more drift)
    - Piece animation: smooth 200ms tween between squares via requestAnimationFrame
    
    PHASE 8 - Player Panel Component:
    - New reusable core/player-panel.js
    - Avatar, name, level, rank tier, connection dot, turn indicator
    - Tap to inspect → popup with add friend button
    - CSS injected once, used by all games
    Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
    4de6634a