Fix mate and stalemate test in Chu Shogi
authorH.G. Muller <h.g.muller@hccnet.nl>
Fri, 22 Nov 2013 22:40:33 +0000 (23:40 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Sun, 22 Dec 2013 22:32:09 +0000 (23:32 +0100)
commitef62f9528016f12b917f859f7021311445172458
tree91e7a6c43b491ccd1460dabdc290318a8083fc3b
parent69ce008d53a3c2fe16f7522b2c2dc7957fb5ea13
Fix mate and stalemate test in Chu Shogi

Chu Shogi officially has no check, but we do want checkmate signs to
be displayed in SAN, and proper game-end messages to appear, rather than
force the user to play on until the King is captured. we also don't want
to allow him blundering away his King. So we don't use the F_IGNORE_CHECK
flag for Chu. But that means mate and stalemate will be recognized.
So it has to know stalemate is a win. Furthermore, check has to take
into account a possible spare royal. Finally, the + symbol to indicate
check should not be used in Chu, as in all Shogi variants this is reserved
to indicate promotion.
backend.c
moves.c