EndGame code incorrectly detects checkmate because when calculating if the
player can block the attack, it looks at all the opponents attack squares.
This is incorrect since the check does not come from all the attack squares but
only one line of attack squares.
Need to create a test case the has one piece that can move into a non check
attack square and see if EndGame still calculates a check and not a checkmate.
EndGame should look at only the check attack and ignore all the other attacks
made by the attacking square.
Original issue reported on code.google.com by crai...@gmail.com on 3 Jan 2011 at 7:19
Original issue reported on code.google.com by
crai...@gmail.com
on 3 Jan 2011 at 7:19