Revert "King and bishop can checkmate king and bishop of opposite color"
This reverts commit af8f4d798d
.
Needs updated tests before it can be released
This commit is contained in:
parent
bdc88e70ba
commit
21496597e3
2 changed files with 0 additions and 10 deletions
1
NEWS
1
NEWS
|
@ -12,7 +12,6 @@ gnome-chess 3.9.2
|
|||
* Each player's clock is now initially set to half the game's total duration
|
||||
* The clock now begins counting down only after White's first move
|
||||
* The clock now stops counting down once the game is over
|
||||
* Further improve the algorithm for determining insufficient material
|
||||
* Stop the engine immediately when the game ends, not when the next game starts
|
||||
* Sensibly set the sensitivity of Smooth Display and Piece Style preferences
|
||||
depending on if 3D view is enabled
|
||||
|
|
|
@ -1001,15 +1001,6 @@ public class ChessState
|
|||
return true;
|
||||
if ((black_bishop_count > 0 || black_knight_count > 0) && white_knight_count > 0)
|
||||
return true;
|
||||
|
||||
/* King and bishop can checkmate vs. king and bishop if bishops are on opposite colors */
|
||||
if (white_bishop_count > 0 && black_bishop_count > 0)
|
||||
{
|
||||
if (white_bishop_on_white_square && black_bishop_on_black_square)
|
||||
return true;
|
||||
else if (white_bishop_on_black_square && black_bishop_on_white_square)
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue