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



commit 0533434cebe3e9bb0b8fe0c8b1773aa6fca9e19b
Author: Robert Ancell <robert ancell canonical com>
Date:   Sun May 8 09:17:22 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]