From 249a20cb9dd6f29fa5450deafbb44dfabf723f90 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Fri, 28 Feb 2014 10:43:08 +0100 Subject: [PATCH] Fix Pawn double-push Black pawns also did double-pushes from the 6th rank! --- hachu.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hachu.c b/hachu.c index f457569..d341352 100644 --- a/hachu.c +++ b/hachu.c @@ -1122,7 +1122,7 @@ GenNonCapts (int promoSuppress) } } else if(r == M) { // FIDE Pawn; check double-move - if(!NewNonCapture(x, x+v, pFlag) && chessFlag && promoBoard[x-v]) + if(!NewNonCapture(x, x+v, pFlag) && chessFlag && promoBoard[x-v] & LAST_RANK) NewNonCapture(x, x+2*v, pFlag), moveStack[msp-1] |= DEFER; // use promoSuppress flag as e.p. flag } continue; -- 1.7.0.4