From: Fabian Fichter Date: Fri, 19 Mar 2021 23:44:19 +0000 (+0100) Subject: Fix en passant in FEN for grand in CECP X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=26391846b3f27a23ec8561d5c86cf7bda534ddff;p=fairystockfish.git Fix en passant in FEN for grand in CECP Closes #282. --- diff --git a/src/position.cpp b/src/position.cpp index 5d42d30..9eef9ed 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -390,6 +390,11 @@ Position& Position::set(const Variant* v, const string& fenStr, bool isChess960, && ((ss >> row) && (row >= '1' && row <= '1' + max_rank()))) { st->epSquare = make_square(File(col - 'a'), Rank(row - '1')); +#ifdef LARGEBOARDS + // Consider different rank numbering in CECP + if (max_rank() == RANK_10 && Options["Protocol"] == "xboard") + st->epSquare += NORTH; +#endif // En passant square will be considered only if // a) side to move have a pawn threatening epSquare