X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.h;h=6378d0ba2ff07a3ce608ab9a9b89c5976d02a607;hp=e38020d5b5a2188661103f46f4e12506ff1e48e8;hb=b2edac7075ca238326378cb2c5ef09f7cdb2fd9e;hpb=578b21bbeedc41b6e0d1b2df46887b1636a78e2b diff --git a/src/position.h b/src/position.h index e38020d5..6378d0ba 100644 --- a/src/position.h +++ b/src/position.h @@ -46,7 +46,7 @@ struct CheckInfo { Bitboard dcCandidates; Bitboard pinned; - Bitboard checkSq[PIECE_TYPE_NB]; + Bitboard checkSquares[PIECE_TYPE_NB]; Square ksq; }; @@ -141,7 +141,6 @@ public: // 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 @@ -366,10 +365,6 @@ inline bool Position::opposite_bishops() const { && 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; }