From 83651099725b6c9ddfc45941e02e8aea7c383944 Mon Sep 17 00:00:00 2001 From: Tomasz Sobczyk Date: Mon, 5 Apr 2021 12:37:11 +0200 Subject: [PATCH] Revert "Add additional checks for en-passant possiblity when fixing the erroneus ep flag from a fen." This reverts commit 6afcdaa928c4b7a9711b3df53d4cbb70616975f5. --- src/extra/nnue_data_binpack_format.h | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/extra/nnue_data_binpack_format.h b/src/extra/nnue_data_binpack_format.h index b957fae6..dce53b83 100644 --- a/src/extra/nnue_data_binpack_format.h +++ b/src/extra/nnue_data_binpack_format.h @@ -6115,26 +6115,6 @@ namespace chess return false; } - if (pieceAt(epSquare) != Piece::none()) - { - return false; - } - - const auto forward = - sideToMove == chess::Color::White - ? FlatSquareOffset(0, 1) - : FlatSquareOffset(0, -1); - - if (pieceAt(epSquare + forward) != Piece::none()) - { - return false; - } - - if (pieceAt(epSquare + -forward) != Piece(PieceType::Pawn, !sideToMove)) - { - return false; - } - return isEpPossibleColdPath(epSquare, pawnsAttackingEpSquare, sideToMove); }