Revert "Clarify the mapping of files to queenside"

This reverts commit 7756344d5d.
This commit is contained in:
Stéphane Nicolet
2019-09-23 09:10:28 +02:00
parent 7756344d5d
commit 302e0f70c6
4 changed files with 3 additions and 7 deletions

View File

@@ -366,10 +366,6 @@ constexpr Piece operator~(Piece pc) {
return Piece(pc ^ 8); // Swap color of piece B_KNIGHT -> W_KNIGHT
}
inline File map_to_queenside(File f) {
return std::min(f, File(FILE_H - f)); // Map files ABCDEFGH to files ABCDDCBA
}
constexpr CastlingRights operator&(Color c, CastlingRights cr) {
return CastlingRights((c == WHITE ? WHITE_CASTLING : BLACK_CASTLING) & cr);
}