Hello.
How do I know what kind of color is going to play in this kind of situation.
I mean a "challenge" with a random color.
I accept the challenge, and in the indications of the "challenge" I only see that it is random.
How can I find out what kind of color I got after accepting the challenge?
board = berserk.clients.Board(session)
reto = berserk.clients.Challenges(session)
for event in board.stream_incoming_events():
print (event)
if event['type'] == "challenge":
reto.accept(event['challenge']['id'])
Hello. How do I know what kind of color is going to play in this kind of situation. I mean a "challenge" with a random color. I accept the challenge, and in the indications of the "challenge" I only see that it is random. How can I find out what kind of color I got after accepting the challenge?
{'type': 'challenge', 'challenge': {'id': 'bbbbbbb', 'url': 'https://lichess.org/bbbbbbbb', 'status': 'created', 'challenger': {'id': 'xxxxxxxx', 'name': 'xxxxxx', 'title': None, 'rating': 1500, 'provisional': True, 'online': True}, 'destUser': {'id': 'bbbbbbbb', 'name': 'bbbbbbb', 'title': None, 'rating': 1404, 'provisional': True, 'online': True}, 'variant': {'key': 'standard', 'name': 'Standard', 'short': 'Std'}, 'rated': False, 'speed': 'correspondence', 'timeControl': {'type': 'unlimited'}, 'color': 'random', 'perf': {'icon': ';', 'name': 'Correspondence'}}}