Keep track of number of remaining checks
authorH.G.Muller <hgm@hgm-xboard.(none)>
Mon, 5 Dec 2016 11:01:17 +0000 (12:01 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Fri, 13 Jan 2017 15:39:25 +0000 (16:39 +0100)
commite3955dbbd7fbfb0fd22d5a75971075556a102e66
treeb6ac4cd221868897d07a3bbcc1f777b745720a2a
parent8c5702d5679cd14739806e3498f67f0fb6b5ef79
Keep track of number of remaining checks

Another off-board square is now allocated forkeeping track of the number
of remaining checks each side can suffer before losing. When this double
counter is 0, counting is disabled. Otherwise each check will decrease
the count of the checked side, and when it reaches 0 the check will be
treated as a checkmate. In variant 3check the counters will be initialized
to 3, otherwise to 0.
backend.c
common.h