[gnome-chess/gnome-3-8] Fix detection of draws by the fifty-move rule
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess/gnome-3-8] Fix detection of draws by the fifty-move rule
- Date: Sun, 11 Aug 2013 22:08:44 +0000 (UTC)
commit 7f17d8af307dd3b1b2c6e97a26b304912e52494e
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sun Aug 11 16:51:18 2013 -0500
Fix detection of draws by the fifty-move rule
The halfmove clock was reset to zero each time we copied a ChessState
object.
src/chess-game.vala | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/chess-game.vala b/src/chess-game.vala
index 2b4c0a6..8a2451e 100644
--- a/src/chess-game.vala
+++ b/src/chess-game.vala
@@ -408,6 +408,7 @@ public class ChessState
state.board[i] = board[i];
state.piece_masks[Color.WHITE] = piece_masks[Color.WHITE];
state.piece_masks[Color.BLACK] = piece_masks[Color.BLACK];
+ state.halfmove_clock = halfmove_clock;
return state;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]