45b5719d63
Build & Test (NowChessSystems) TeamCity build finished
Tournament bots flagged in 5+3 classical: budgets were fixed and
clock-blind, HybridBot's veto re-search double-spent (up to 4s/move),
and the game loop polled every 1s, burning our clock waiting on the
opponent.
- Bot is now a trait taking a TimeControl (remaining + increment);
apply(ctx) defaults to Unlimited so local/self-play/tests keep their
fixed budgets.
- TimeControl.budget derives a per-move budget from the real clock with
an overhead reserve, a panic mode under 20s, and a hard ceiling, so a
bot can no longer flag from thinking.
- HybridBot splits one budget across main (0.7) and veto (0.3) searches
instead of running two full searches.
- TournamentBotGamePlayer reads the server clock (seconds -> ms) and
plays stream-driven via GET /game/{id}/stream (NDJSON, heartbeat-kept),
so the opponent's move arrives instantly; polling stays as a fallback.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>