[gnome-games/gnome-2-32] chess: Correctly apply fifty move rule after 50 full moves, not half moved (Bug #649625)
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/gnome-2-32] chess: Correctly apply fifty move rule after 50 full moves, not half moved (Bug #649625)
- Date: Sun, 8 May 2011 07:19:49 +0000 (UTC)
commit 228961d4a6d79ce2c49491570ae9abb99f7c4c00
Author: Robert Ancell <robert ancell canonical com>
Date: Sun May 8 09:19:01 2011 +0200
chess: Correctly apply fifty move rule after 50 full moves, not half moved (Bug #649625)
glchess/src/lib/chess/board.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glchess/src/lib/chess/board.py b/glchess/src/lib/chess/board.py
index 9e5ba74..be3e7ef 100644
--- a/glchess/src/lib/chess/board.py
+++ b/glchess/src/lib/chess/board.py
@@ -931,7 +931,7 @@ class ChessBoard:
move.opponentInCheck = state.inCheck(opponentColour)
move.opponentCanMove = state.canMove(opponentColour)
move.threeFoldRepetition = state.threeFoldRepetition
- move.fiftyMoveRule = state.fiftyMoveCount >= 50
+ move.fiftyMoveRule = state.fiftyMoveCount >= 100
return move
def undo(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]