krishnabalajee / osas3cf

Automatically exported from code.google.com/p/osas3cf
Other
0 stars 0 forks source link

EndGame blocking checkmate #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r57.

Original comment by crai...@gmail.com on 3 Jan 2011 at 9:24