Revert "Add additional checks for en-passant possiblity when fixing the erroneus ep flag from a fen."

This reverts commit 6afcdaa928.
This commit is contained in:
Tomasz Sobczyk
2021-04-05 12:37:11 +02:00
parent 6afcdaa928
commit 8365109972

View File

@@ -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);
}