Closed MarkZH closed 1 year ago
I cannot reproduce, when the game end with a 3fold the last two events I received were:
b'{"type":"gameState","moves":"e2e4 e7e5 g1f3 g8f6 f3g1 f6g8 g1f3 g8f6 f3g1 f6g8","wtime":896170,"btime":905480,"winc":3000,"binc":3000,"status":"started"}'
b'{"type":"gameState","moves":"e2e4 e7e5 g1f3 g8f6 f3g1 f6g8 g1f3 g8f6 f3g1 f6g8","wtime":896170,"btime":905480,"winc":3000,"binc":3000,"status":"draw"}'
With the final one correctly stating draw
I'm seeing the draw
events in my logs, too. The second-to-last event has "status": "started"
, so my bot tries to make one more move, which results in the error due to sending a move to a non-existent game. That's not a big deal, though, since the game is over.
In several recent bot games, the final
gameState
event had a'status': 'started'
even though the game had ended in a threefold repetition. Thestatus
of these messages should have beendraw
.Lichess did detect the threefold repetition since a
gameFinish
was received for these games at the same time as the lastgameState
message.Examples:
ID: S1B4n8zi (game link)
Final game stream message:
Final event stream message for this game:
ID: 3gkCLRwv (game link)
Final game stream message:
Final event stream for this game:
In this final example, I modified my bot to keep playing after a threefold draw, and it encountered an error when it tried to send a move.
ID: 9yu2v4Zv (game link)
Final game stream message:
Final event stream message for this game:
Attempt at sending move:
Response