We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Challenge result does not indicate color correctly.
In [5]: chall.create_ai(level=2, clock_limit=None, color=berserk.Color.WHITE) Out[5]: {'id': 'UMpK5lST', 'variant': {'key': 'standard', 'name': 'Standard', 'short': 'Std'}, 'speed': 'correspondence', 'perf': 'correspondence', 'rated': False, 'fen': 'rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1', 'player': 'white', 'turns': 0, 'startedAtTurn': 0, 'source': 'ai', 'status': {'id': 20, 'name': 'started'}, 'createdAt': 1639302816645} In [6]: chall.create_ai(level=2, clock_limit=None, color=berserk.Color.BLACK) Out[6]: {'id': '3VdaeZQb', 'variant': {'key': 'standard', 'name': 'Standard', 'short': 'Std'}, 'speed': 'correspondence', 'perf': 'correspondence', 'rated': False, 'fen': 'rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1', 'player': 'white', 'turns': 0, 'startedAtTurn': 0, 'source': 'ai', 'status': {'id': 20, 'name': 'started'}, 'createdAt': 1639302860353}
Two AI games were challenged, one with white one with black. As you can see the returned "player" slot is always white.
The text was updated successfully, but these errors were encountered:
The workaround would be to use the gameId to get the field by:
games = berserk.clients.Games(session) [g.get('color') for g in games.get_ongoing() if g.get('gameId') == 'BC3zmVRw' ]
Sorry, something went wrong.
No branches or pull requests
Description
Challenge result does not indicate color correctly.
What I Did
Two AI games were challenged, one with white one with black. As you can see the returned "player" slot is always white.
The text was updated successfully, but these errors were encountered: