From d99ba07b819f1b0fef84c28ab0ae406384831659 Mon Sep 17 00:00:00 2001 From: Tomasz Sobczyk Date: Tue, 8 Dec 2020 23:44:26 +0100 Subject: [PATCH] Fix incorrect enpassant flag for moves read from uci format in the binpack lib --- src/extra/nnue_data_binpack_format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extra/nnue_data_binpack_format.h b/src/extra/nnue_data_binpack_format.h index 31c6f7bb..77cf8e0a 100644 --- a/src/extra/nnue_data_binpack_format.h +++ b/src/extra/nnue_data_binpack_format.h @@ -6238,7 +6238,7 @@ namespace chess return Move::castle(castleType, pos.sideToMove()); } - else if (pos.epSquare() == to) + else if (pos.pieceAt(from).type() == PieceType::Pawn && pos.epSquare() == to) { return Move::enPassant(from, to); }