1. 02 Jun, 2026 4 commits
    • Mahmoud Aglan's avatar
      nuke: delete entire PHP frontend, rebuild as vanilla JS SPA · 9d4a6fa3
      Mahmoud Aglan authored
      DELETED:
      - All 50+ PHP pages, templates, includes
      - app.css and app-v2.css (1782 + 700 lines of accumulated CSS)
      
      CREATED:
      - app/core/ — SPA engine (router, state, api, audio, haptics, particles, animate)
      - app/screens/ — ES module screens (home, login + placeholders for all routes)
      - app/styles/ — Design token system + animations + components
      - index.php — now serves SPA shell for all non-API routes
      
      ARCHITECTURE:
      - Vanilla JS SPA with ES Modules (no build step, no framework)
      - History API router with animated transitions
      - Web Audio API synthesizer for game sounds
      - Canvas particle system (confetti, coin bursts)
      - Web Animations API for juice (number tickers, fly-to, pop, shake)
      - Haptic feedback patterns via navigator.vibrate
      - Game engines load on-demand as classic scripts (zero modifications)
      
      API endpoints (24) completely unchanged. Game engine JS (25 files) unchanged.
      Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
      9d4a6fa3
    • Mahmoud Aglan's avatar
      feat: kill chess-centric shell — EL3AB is now a game hub · 8c4dc029
      Mahmoud Aglan authored
      - Sidebar: games (شطرنج/لودو/طاولة/دومينو) are the primary nav items
      - Removed "العب الان" chess-only play button from sidebar
      - Removed floating chess FAB from mobile nav
      - Mobile nav: 5 tabs (home/games/leaderboard/social/profile)
      - Header: shows account level instead of chess ELO
      - Home page: games grid is the hero, no chess matchmaking widget
      - Removed all chess-specific time control UI from home page
      - Each game's lobby page handles its own matchmaking
      Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
      8c4dc029
    • Mahmoud Aglan's avatar
    • Mahmoud Aglan's avatar
      feat: multi-game platform overhaul — per-game ratings, redesigned UI, kill chess-legacy · bd053eda
      Mahmoud Aglan authored
      - New player_game_ratings table (any game, any mode, ELO + W/L/D + streaks)
      - New /api/ratings.php — unified ratings API (player, leaderboard, history, modes)
      - game.php dual-writes to new table on chess game end
      - ludo.php now tracks ELO + XP + coins on game completion
      - Full v2 design system (app-v2.css) — WCAG AA, component-driven
      - Redesigned: home, profile, leaderboard, play, login pages
      - New nav: 4-tab mobile + floating play FAB + grouped desktop sidebar
      - XP level titles now game-neutral (مبتدئ → استاذ → اسطورة)
      - Leaderboard supports all games with mode selector
      Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
      bd053eda
  2. 31 May, 2026 1 commit
  3. 30 May, 2026 28 commits
  4. 29 May, 2026 7 commits
    • Mahmoud Aglan's avatar
      fix: 30 UX improvements — make backgammon fully playable · 1e086492
      Mahmoud Aglan authored
      Game Controller (backgammon-game.js) rewrite:
      - Fix selection: click same piece to deselect, click another to swap
      - Bar enforcement: must enter from bar first with clear message
      - Auto-pass when no moves remain for unused dice
      - Bot waiting status message visible during thinking
      - Opening roll shows clear "your turn" status with dice values
      - Pass button action for truly stuck positions
      - Smart move validation with proper die tracking
      - Individual bot move logging
      - Source validation: only select pieces that have moves
      
      UI (backgammon-ui.js) rewrite:
      - setSelected directly applies DOM classes (no render cycle needed)
      - Status text system: guides player ("Select piece", "Choose target")
      - Movable checkers highlighted with golden ring when it's your turn
      - Dice remaining indicator text below dice
      - Pass/skip button shown when stuck
      - Active player gold border highlight
      - Tap feedback animation
      - Hover preview on valid targets
      - New game button in result overlay
      - Valid target points show dashed circle indicator
      
      CSS additions:
      - .bg-point--clickable with gold ring on top checker
      - .bg-point--hover-preview green tint
      - .bg-move-flash animation
      - .bg-status, .bg-pass-btn, .bg-dice-remaining styles
      - .bg-new-game-btn in overlay
      - Valid point dashed circle indicator
      Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
      1e086492
    • Mahmoud Aglan's avatar
      fix: Ludo dice dots spacing — add gap between pips for real die look · 87ce35b8
      Mahmoud Aglan authored
      - Added gap: 4px between 3x3 grid cells
      - Added place-items: center for proper dot centering
      - Reduced dot size to 10px for better proportion with gaps
      - Removed margin: auto (place-items handles centering)
      - Increased border-radius to 12px for rounder dice
      Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
      87ce35b8
    • Mahmoud Aglan's avatar
      fix: 30 visual refinements to Ludo board · 16fbb18e
      Mahmoud Aglan authored
      - Deeper board shadow + border + 12px corners
      - Warmer path cells (#faf8f4) with subtle 0.5px grid
      - Gold safe stars with glow, larger and bolder
      - Start cells use gradients, home entrance directional gradients
      - Base corners: radial gradients with depth
      - Warmer base-inner (#fffef8) with deeper shadows
      - Pieces: radial gradient 3D look, larger (5.8%), smoother movement
      - Stronger highlight pulse + brightness filter
      - Center triangles doubled in size (100px borders)
      - Dice: larger (72px), warm glow, bigger dots (12px)
      - Roll button: larger padding, gold glow shadow
      - Player cards: box-shadow, 12px radius, stronger active glow
      - Board wrapper: 520px max for bigger desktop board
      - More dramatic piece-land bounce animation
      Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
      16fbb18e
    • Mahmoud Aglan's avatar
      fix: 30 visual refinements to backgammon board · 08e1ca6f
      Mahmoud Aglan authored
      - Taller triangles (85% height), wider with pointed tips
      - Board felt gradient + inner shadow for depth
      - Thicker wood frame (10px) with grain color
      - Checker ring detail via radial gradient
      - Tighter stacking overlap (-10px), larger checkers (34px)
      - Narrower bar (6%), textured gradient
      - Larger dice (56px) with warm border
      - Side panel background + wider (240px)
      - Gold turn indicator border, active glow
      - Point hover effect, smooth transitions
      - Dice pair wrapper, count badge pill style
      - Middle divider between board halves
      - Borne-off positioned outside frame
      Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
      08e1ca6f
    • Mahmoud Aglan's avatar
    • Mahmoud Aglan's avatar
      fix: backgammon UI — checker stacking, dice classes, board proportions · 262e9506
      Mahmoud Aglan authored
      - Wrap checkers in .bg-checkers-stack div for proper flex stacking
      - Fix dice class names (bg-die → bg-dice) to match CSS
      - Fix player info class names to match page HTML
      - Make board taller (aspect-ratio 1.2/1), checkers smaller (32px)
      - Fix borne-off tray positioning
      - Add result overlay styles
      Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
      262e9506
    • Mahmoud Aglan's avatar
      feat: add full Backgammon game — bot AI, multiplayer, tournament rules · c21d4618
      Mahmoud Aglan authored
      Complete backgammon (طاولة) implementation:
      - 24-point board with bar, bearing off, doubling cube
      - Bot AI: easy (random), medium (heuristic), hard (positional eval)
      - Local pass-and-play + VS bot + online matchmaking + private rooms
      - Server-side move validation, opening roll, gammon/backgammon detection
      - Supabase Realtime WebSocket for multiplayer
      - Responsive CSS with wood-grain board, triangle points, stacking checkers
      Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
      c21d4618