thecommons-urbit / chess

Distribution repo for Urbit Chess app
Other
24 stars 8 forks source link

Stalemates don't end correctly as draws for the player receiving the move #155

Closed ashelkovnykov closed 12 months ago

ashelkovnykov commented 12 months ago

Found the source of the bug: When a game ends in a draw, the player who made the final move correctly logs this but the other player never receives the move.

This is reflected both in each player's Results tuple (logged in both receiveArchivedGame and getTally) and in the backend, checked via +dbug. The player who should have received the concluding move still has the game stored in their active games.

Fastest way to draw a game here.

Copied from this comment.