Implement Makruk counting rules
authorH.G.Muller <hgm@hgm-xboard.(none)>
Wed, 22 Feb 2017 19:34:36 +0000 (20:34 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Wed, 22 Feb 2017 19:34:36 +0000 (20:34 +0100)
commit7ff7ad1f77f21f7171b3952422dab921c4b198e5
tree7bfd52401c98c92be7a6ad0742744e720dc795ba
parent29ae984961f3af26a9c9c262c590e23a8599e905
Implement Makruk counting rules

Adjudication is now performed based on the Makruk counting rules, assuming
the players count in the way most favorable for them. This means that when
the maximum count is N, the game is adjudicated draw immediately after the
Nth move since the counting could have started when the opponent is bared,
but only on the next move when not, to give him the opportunity to checkmate
when he was not counting. This adjudication is switched off if -ruleMoves
is set to a negative value, (normally this would be 0 in Makruk), and is
also dependent on legality testing being on.
backend.c