X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.h;h=3a5087c54f5cfa7483abf46a8de52440740b1724;hp=676122c23d400efc87db144749d840323f7beb22;hb=a4988fecee893fcf6a571abc1d2a102afddce591;hpb=2f6927ac08887ff3b709cfe9228b27a85bdd1d88 diff --git a/src/position.h b/src/position.h index 676122c2..3a5087c5 100644 --- a/src/position.h +++ b/src/position.h @@ -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)