Closed lakinwecker closed 4 years ago
Another example where Chesster didn’t pick up the result for a game ending in stalemate: https://lichess.org/6dFDBIot
Unfortunately I got kind of stuck trying to set up the 4545 development environment, so I am just posting this here as a result of an unverified investigation, hoping that it will save lakinwecker 5 minutes or so:
https://github.com/endrawes0/Chesster/blob/ab0c53a2d21c96b63f4bf24c4162f91896ddb55c/src/lichess.ts#L373-L396 ignores the GameStatus.stalemate. In case of a stalemate it returns ResultEnum.UNKNOWN instead of ResultEnum.DRAW, which might be the root cause of this issue. Probably just adapting the condition in line 377 to status === GameStatus.draw || status === GameStatus.stalemate
will do the trick.
This has been fixed, but not deployed.
Fix stalemate vs draw for games like this: https://lichess.org/MNuION1F