X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fposition.h;h=7d4b37719122ed18eec0b94c833e9e45f9e1b37d;hb=487c21b1aa64dcc09dd95b845a66f39ae3c3754e;hp=a736f3e677bd0463f7e7db93d1b9af1f9b153954;hpb=7a9f67747f23e837a8691ba9e6e4f0d1fdafff73;p=stockfish diff --git a/src/position.h b/src/position.h index a736f3e6..7d4b3771 100644 --- a/src/position.h +++ b/src/position.h @@ -91,7 +91,7 @@ public: std::string fen() const; // Position representation - Bitboard pieces(PieceType pt) const; + Bitboard pieces(PieceType pt = ALL_PIECES) const; template Bitboard pieces(PieceType pt, PieceTypes... pts) const; Bitboard pieces(Color c) const; template Bitboard pieces(Color c, PieceTypes... pts) const; @@ -143,8 +143,8 @@ public: void undo_null_move(); // Static Exchange Evaluation - bool see_ge(Move m, Bitboard& occupied, Value threshold = VALUE_ZERO) const; bool see_ge(Move m, Value threshold = VALUE_ZERO) const; + bool see_ge(Move m, Bitboard& occupied, Value threshold = VALUE_ZERO) const; // Accessing hash keys Key key() const; @@ -224,7 +224,7 @@ inline Piece Position::moved_piece(Move m) const { return piece_on(from_sq(m)); } -inline Bitboard Position::pieces(PieceType pt = ALL_PIECES) const { +inline Bitboard Position::pieces(PieceType pt) const { return byTypeBB[pt]; }