[gnome-chess] Revert "King and bishop can checkmate king and bishop of opposite color"
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess] Revert "King and bishop can checkmate king and bishop of opposite color"
- Date: Mon, 27 May 2013 18:47:52 +0000 (UTC)
commit 21496597e3cda74acec459d57475deff0392105e
Author: Michael Catanzaro <mike catanzaro gmail com>
Date: Mon May 27 13:43:23 2013 -0500
Revert "King and bishop can checkmate king and bishop of opposite color"
This reverts commit af8f4d798d0bb0568233b3d275356d8633e51bc8.
Needs updated tests before it can be released
NEWS | 1 -
src/chess-game.vala | 9 ---------
2 files changed, 0 insertions(+), 10 deletions(-)
---
diff --git a/NEWS b/NEWS
index fd1f989..2e883da 100644
--- a/NEWS
+++ b/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
diff --git a/src/chess-game.vala b/src/chess-game.vala
index b501c8f..0bd80d6 100644
--- a/src/chess-game.vala
+++ b/src/chess-game.vala
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]