X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.h;h=cc816910a3d0320f8e866f12b041dca0d5549ce4;hp=ff1fa9370d9cbf36460cca42e84849e0e397fe47;hb=6716337f407ad6586b636aca72ee673655822137;hpb=ee8ccac622227f3b5184e294ffa3d2766bf4b600 diff --git a/src/position.h b/src/position.h index ff1fa937..cc816910 100644 --- a/src/position.h +++ b/src/position.h @@ -100,7 +100,7 @@ enum Phase { struct StateInfo { Key pawnKey, materialKey; - int castleRights, rule50, gamePly, pliesFromNull; + int castleRights, rule50, ply, pliesFromNull; Square epSquare; Score value; Value npMaterial[2]; @@ -273,7 +273,7 @@ public: // Game ply information int ply() const; - void reset_game_ply(); + void reset_ply(); // Position consistency check, for debugging bool is_ok(int* failedStep = NULL) const; @@ -558,7 +558,7 @@ inline PieceType Position::captured_piece() const { } inline int Position::ply() const { - return st->gamePly; + return st->ply; } #endif // !defined(POSITION_H_INCLUDED)