fix(official-bots): derive tournament game color from game endpoint #79

Merged
Janis merged 1 commits from fix/tournament-bot-color-from-game-endpoint into main 2026-06-23 22:58:09 +02:00

1 Commits

Author SHA1 Message Date
Janis Eccarius 8f8481227a fix(official-bots): derive tournament game color from game endpoint
Build & Test (NowChessSystems) TeamCity build failed
Tournament-server reports wrong color in pairings (everyone white), so
auto-joined games could play with an inverted color and never move on
their real turn. The game endpoint white/black ids are correct, so the
poll loop now derives our color from it, falling back to the passed-in
color. Both stream and auto-join entry paths are now immune to the bug.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-23 22:56:55 +02:00