From: Marco Costalba Date: Fri, 15 Jul 2011 09:40:09 +0000 (+0200) Subject: Fix parametrized direction in pawns generation X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=37d551fb39a4e631946156fcb76cde7fcde37ba4;hp=9c8c0de538317f4270a62c6b525cad1ff8303d16;p=stockfish Fix parametrized direction in pawns generation It worked by accident because we always called both directions, but definition was wrong. Functional change due to different generation order, but perft numbers are the correct ones. Signed-off-by: Marco Costalba --- diff --git a/src/movegen.cpp b/src/movegen.cpp index e0f3baac..c9255f31 100644 --- a/src/movegen.cpp +++ b/src/movegen.cpp @@ -406,8 +406,8 @@ namespace { const Bitboard TRank7BB = (Us == WHITE ? Rank7BB : Rank2BB); const Bitboard TRank3BB = (Us == WHITE ? Rank3BB : Rank6BB); const Square UP = (Us == WHITE ? DELTA_N : DELTA_S); - const Square RIGHT_UP = (Us == WHITE ? DELTA_NE : DELTA_SE); - const Square LEFT_UP = (Us == WHITE ? DELTA_NW : DELTA_SW); + const Square RIGHT_UP = (Us == WHITE ? DELTA_NE : DELTA_SW); + const Square LEFT_UP = (Us == WHITE ? DELTA_NW : DELTA_SE); Square to; Bitboard b1, b2, dc1, dc2, pawnPushes, emptySquares;