// Piece specific
bool pawn_passed(Color c, Square s) const;
- bool pawn_on_7th(Color c) const;
bool opposite_bishops() const;
// Doing and undoing moves
&& opposite_colors(pieceList[WHITE][BISHOP][0], pieceList[BLACK][BISHOP][0]);
}
-inline bool Position::pawn_on_7th(Color c) const {
- return pieces(c, PAWN) & rank_bb(relative_rank(c, RANK_7));
-}
-
inline bool Position::is_chess960() const {
return chess960;
}