]> git.sesse.net Git - stockfish/blobdiff - src/position.h
Merge remote-tracking branch 'upstream/master'
[stockfish] / src / position.h
index 1fc6b3b89c4ab2726b9605d5afc50a326e969bfc..bb45c44a3bf97e24f7507109acc9dce761b9cd48 100644 (file)
@@ -144,6 +144,7 @@ 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;
 
   // Accessing hash keys
@@ -179,8 +180,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 +394,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 {