Fix spurious result claims in Spartan Chess
authorH.G. Muller <h.g.muller@hccnet.nl>
Tue, 12 Feb 2013 08:43:20 +0000 (09:43 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Tue, 12 Feb 2013 11:18:58 +0000 (12:18 +0100)
commit857ddcade2d574782d3d8643bedcaf42b79f483f
tree61b0cd1cf4dea4913b3738de3edd04f73552b109
parenta1b49a22d4f243c8bda00c3f630dbabac8508b15
Fix spurious result claims in Spartan Chess

Fairy-Max sometimes sees phantom mates, where evasion is possible through
promotion to royalty. The possibility for this is now detected based on
presence of expendable royalty in the list of participating pieces,
and this is used to suppress loss claims. (Checking if promotion is
indeed possible is limited to presence of 2nd-rank Pawn.)
 In addition promotion to royalty is now rejected as illegal in variants
without expendable royalty.
fairymax.c