[gnome-games/gnome-3-0] chess: Correctly apply fifty move rule after 50 full moves, not half moved (Bug #649625)



commit 57e78d45d04c82d29f43bcef72449787f4695f63
Author: Robert Ancell <robert ancell canonical com>
Date:   Sun May 8 09:18:15 2011 +0200

    chess: Correctly apply fifty move rule after 50 full moves, not half moved (Bug #649625)

 glchess/src/chess-game.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glchess/src/chess-game.vala b/glchess/src/chess-game.vala
index f6700b3..1a169f6 100644
--- a/glchess/src/chess-game.vala
+++ b/glchess/src/chess-game.vala
@@ -1334,7 +1334,7 @@ public class ChessGame
         if (!is_started)
             return false;
 
-        if (current_state.halfmove_clock >= 50)
+        if (current_state.halfmove_clock >= 100)
             stop (ChessResult.DRAW, ChessRule.FIFTY_MOVES);
         else if (is_three_fold_repeat ())
             stop (ChessResult.DRAW, ChessRule.THREE_FOLD_REPETITION);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]