X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fposition.h;h=670b621ce7452b8b7491da4ce8ed065307eb95d7;hb=24b37e4586ba610d331048446bd036bec5544c4f;hp=1fc6b3b89c4ab2726b9605d5afc50a326e969bfc;hpb=6ce225bb4c31298b131714eff67b56de3b8ee78d;p=stockfish diff --git a/src/position.h b/src/position.h index 1fc6b3b8..670b621c 100644 --- a/src/position.h +++ b/src/position.h @@ -144,7 +144,7 @@ public: void undo_null_move(); // Static Exchange Evaluation - 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; @@ -179,8 +179,8 @@ public: private: // Initialization helpers (used while setting up a position) void set_castling_right(Color c, Square rfrom); - void set_state(StateInfo* si) const; - void set_check_info(StateInfo* si) const; + void set_state() const; + void set_check_info() const; // Other helpers void move_piece(Square from, Square to); @@ -393,7 +393,7 @@ inline bool Position::capture(Move m) const { // is needed to avoid the generation of duplicate moves. inline bool Position::capture_stage(Move m) const { assert(is_ok(m)); - return capture(m) || (type_of(m) == PROMOTION && promotion_type(m) == QUEEN); + return capture(m) || promotion_type(m) == QUEEN; } inline Piece Position::captured_piece() const {