• Mahmoud Aglan's avatar
    fix: challenges now track REAL progress from today's completed matches · d33a8aea
    Mahmoud Aglan authored
    Challenges API now counts actual matches played today:
    - games_played: total completed matches today
    - wins: matches won today
    - chess_played: chess games today
    - ludo_played: ludo games today
    - domino_played: domino games today
    - bot_wins: bot games won today
    
    Progress is calculated server-side by querying matches table
    where player was white/black AND status=completed AND created today.
    Challenge marked completed=true when progress >= target.
    Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
    d33a8aea
challenges.php 7.16 KB