feat: database-driven data — bots from API, games from game_plugins, config from system_config
- New /api/bots.php: proxies Stockfish API /api/chess/bots with 5min cache
- New /api/games.php: reads game_plugins table (game list, time controls, config)
- New /api/config.php: serves system_config (reward amounts, matchmaking, etc.)
- pages/bots.php: fetches bot list dynamically from API (names, ratings, styles)
- pages/games.php: renders game grid from game_plugins DB table
- pages/play.php: populates bot dropdown from API
- pages/game.php: loads bot name from API instead of hardcoded map
- pages/home.php: loads reward config from API, bot names for recent games
- pages/ludo.php: loads difficulty options from game config
- api/daily-reward.php: reads reward amounts from system_config table
- analysis.js: fetches bot names from API cache
Co-Authored-By:
Claude Opus 4.6 <noreply@anthropic.com>
Showing
api/bots.php
0 → 100644
api/config.php
0 → 100644
api/games.php
0 → 100644
Please register or sign in to comment