aclap-dev / jocly

Javascript library and tools to provide user interface (2D, 3D, VR) and engine for playing board games
https://jocly.com/
Other
70 stars 28 forks source link

Xiangqi stalemate #30

Open Arniboy303 opened 6 years ago

Arniboy303 commented 6 years ago

In Xiangqi i have just delievered stalemate to my opponent. Jocly said I lose. But stalemate in xiangqi is a win for the player who stalemate his opponent.

raman22feb1988 commented 6 years ago

I agree with Arniboy. I have tested a few times on the demo page https://mi-g.github.io/jocly/examples/browser/control.html?game=xiangqi and stalemate in Xiangqi (Chinese chess) is incorrectly recorded and reported as a loss, whereas it should be a win. Of course that the pieces in Xiangqi (Chinese chess) are much weaker than in standard chess to be able to be delivering with checkmate all the time and not stalemate any of the time.

By the way, anyone who wants to work out on this issue may wish to check out if they are able to reproduce this same problem by using themselves, before trying out to fix this bug up, if they would rather want to do so with in it, available over hereby, for than for played game.