• Mahmoud Aglan's avatar
    fix(tournaments): bot testing can no longer touch a real tournament · 1f8152ac
    Mahmoud Aglan authored
    Populate used to attach a new Swiss-service tournament to whatever it was
    pointed at, which switched a game-run tournament to the other engine, and
    registered bots with no profile that real players were then paired against.
    Population is refused once a real player has registered or the tournament
    has left draft, and simulation while any real player is entered, unless a
    superadmin ticks an explicit test override. Game-run test tournaments are
    simulated natively: start through the game, then results drawn from the
    bots' ratings are recorded through the game's arbiter endpoint and the
    engine pairs the next round itself. bot_metadata is stored as jsonb, not a
    JSON string.
    Co-Authored-By: 's avatarClaude Opus 5.5 <noreply@anthropic.com>
    1f8152ac
_bot_testing.php 12.5 KB