]> git.sesse.net Git - stockfish/blobdiff - src/position.h
Restore development version
[stockfish] / src / position.h
index 676122c23d400efc87db144749d840323f7beb22..88090ad2227232394e9a5ce81cbb6fb6fe9535d8 100644 (file)
@@ -68,7 +68,7 @@ const int MaxGameLength = 220;
 
 struct CheckInfo {
 
-    CheckInfo(const Position&);
+    explicit CheckInfo(const Position&);
 
     Bitboard dcCandidates;
     Bitboard checkSq[8];
@@ -100,7 +100,7 @@ enum Phase {
 
 struct StateInfo {
   Key pawnKey, materialKey;
-  int castleRights, rule50, ply, pliesFromNull;
+  int castleRights, rule50, gamePly, pliesFromNull;
   Square epSquare;
   Score value;
   Value npMaterial[2];
@@ -274,10 +274,11 @@ public:
   bool opposite_colored_bishops() const;
   bool has_pawn_on_7th(Color c) const;
 
-  // Game ply information
+  // Current thread ID searching on the position
   int thread() const;
-  int ply() const;
-  void reset_ply();
+
+  // Reset the gamePly variable to 0
+  void reset_game_ply();
 
   // Position consistency check, for debugging
   bool is_ok(int* failedStep = NULL) const;
@@ -566,8 +567,4 @@ inline int Position::thread() const {
   return threadID;
 }
 
-inline int Position::ply() const {
-  return st->ply;
-}
-
 #endif // !defined(POSITION_H_INCLUDED)