• Mahmoud Aglan's avatar
    fix: domino layout — correct tile orientation and chain connectivity · 7ef3695b
    Mahmoud Aglan authored
    Layout engine:
    - Non-doubles are landscape (w=48, h=24) in horizontal chains
    - Doubles are portrait (w=24, h=48) perpendicular to horizontal chains
    - Tiles positioned touching each other with GAP=3px between
    - Properly computes half-extents for advance distance
    - Endpoints positioned beyond last tile in chain direction
    
    Tile renderer:
    - Uses w>h to detect landscape orientation (no rotation param needed)
    - Left/right pips in landscape, top/bottom pips in portrait
    - Doubles get accent background
    
    Board:
    - Ghost and animate tiles compute orientation from layout dirIdx
    - No rotation applied (dimensions are pre-computed correctly)
    Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
    7ef3695b
Name
Last commit
Last update
..
core Loading commit data...
lib Loading commit data...
modules Loading commit data...
engine.js Loading commit data...