]> git.sesse.net Git - stockfish/blobdiff - src/position.h
Revert C++11 merge
[stockfish] / src / position.h
index 85ea6a7a8020311046c04fe7b15a1d5faf158ebc..14ce80996a85f8a65458131fe6de4b2f7997ba6e 100644 (file)
@@ -145,7 +145,7 @@ public:
 
   // Doing and undoing moves
   void do_move(Move m, StateInfo& st);
-  void do_move(Move m, StateInfo& st, const CheckInfo& ci, bool moveIsCheck);
+  void do_move(Move m, StateInfo& st, bool moveIsCheck);
   void undo_move(Move m);
   void do_null_move(StateInfo& st);
   void undo_null_move();
@@ -170,11 +170,12 @@ public:
   uint64_t nodes_searched() const;
   void set_nodes_searched(uint64_t n);
   bool is_draw() const;
+  int rule50_count() const;
   Score psq_score() const;
   Value non_pawn_material(Color c) const;
 
   // Position consistency check, for debugging
-  bool pos_is_ok(int* step = nullptr) const;
+  bool pos_is_ok(int* step = NULL) const;
   void flip();
 
 private:
@@ -347,6 +348,10 @@ inline int Position::game_ply() const {
   return gamePly;
 }
 
+inline int Position::rule50_count() const {
+  return st->rule50;
+}
+
 inline uint64_t Position::nodes_searched() const {
   return nodes;
 }