#`/claim-victory` unreliable

3 messages · Page 1 of 1 (latest)

verbal flame
#

Sometimes /api/board/game/{gameId}/claim-victory replies {"ok":true} but the game keeps playing. Other times the game ends correctly. Not yet certain why.

#

Here's what I've worked out:

  1. Seems: {"type":"opponentGone","gone":true,"claimWinInSeconds":0} countdown events occur regardless of turn
    2A. /api/board/game{gameId}/claim-victory only functions when not board-api player's turn
    2B. /api/board/game{gameId}/claim-victory returns {"ok":true} even when it nopped when called on board-api player's turn.
#

If ^ is expected, I'm happy to block my client from attempting until it's opponent's turn and update the docs. Another option would be to allow calling regardless of turn. Either way probably makes sense to return an error on claim-victory failure.