]> git.sesse.net Git - stockfish/blobdiff - src/position.h
Add syzygy support
[stockfish] / src / position.h
index 85ea6a7a8020311046c04fe7b15a1d5faf158ebc..86acd20d0eb7a174b779147f8e992dce9ff4a7c5 100644 (file)
@@ -170,6 +170,7 @@ public:
   uint64_t nodes_searched() const;
   void set_nodes_searched(uint64_t n);
   bool is_draw() const;
   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;
 
   Score psq_score() const;
   Value non_pawn_material(Color c) const;
 
@@ -347,6 +348,10 @@ inline int Position::game_ply() const {
   return gamePly;
 }
 
   return gamePly;
 }
 
+inline int Position::rule50_count() const {
+  return st->rule50;
+}
+
 inline uint64_t Position::nodes_searched() const {
   return nodes;
 }
 inline uint64_t Position::nodes_searched() const {
   return nodes;
 }