From 3b581e66a7e1ad5279983ae3a06ae8d1eb65c788 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Mon, 15 May 2017 14:16:56 +0200 Subject: [PATCH] Prevent spoiling of castling rights on setup The undo info is now initialized to a dummy move on a3 rather than a1, so that the white Q-side castling rules are not immediately spoiled through suspecting a Rook move. --- dropper.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dropper.c b/dropper.c index f3f4ee1..aa314a3 100644 --- a/dropper.c +++ b/dropper.c @@ -1528,7 +1528,7 @@ Setup (char *fen) fen++; } - undoInfo.rights = rights; + undoInfo.rights = rights; undoInfo.fromSqr = undoInfo.toSqr = undoInfo.captSqr = 44; undoInfo.toPiece = board[44]; // kludge to prevent spoiling of rights undoInfo.newEval = (stm == WHITE ? pstEval : -pstEval); undoInfo.newKey = hashKey; -- 1.7.0.4