X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.h;h=fb7eb4b90cc79335ade326bcbeae0d59825c1fe6;hp=579b5308a82e6bea721cdec7ff5233a6a7b6ae93;hb=76caef8ba1fb4ca0520a8e2b42815d626484e93c;hpb=5a156df719790ddd882a928ddf721f8ba81587b1 diff --git a/src/position.h b/src/position.h index 579b5308..fb7eb4b9 100644 --- a/src/position.h +++ b/src/position.h @@ -174,7 +174,7 @@ public: // Other properties of the position Color side_to_move() const; - int startpos_ply_counter() const; + int game_ply() const; bool is_chess960() const; Thread* this_thread() const; int64_t nodes_searched() const; @@ -218,7 +218,7 @@ private: Bitboard castlePath[COLOR_NB][CASTLING_SIDE_NB]; StateInfo startState; int64_t nodes; - int startPosPly; + int gamePly; Color sideToMove; Thread* thisThread; StateInfo* st; @@ -376,8 +376,8 @@ inline bool Position::is_passed_pawn_push(Move m) const { && pawn_is_passed(sideToMove, to_sq(m)); } -inline int Position::startpos_ply_counter() const { - return startPosPly + st->pliesFromNull; // HACK +inline int Position::game_ply() const { + return gamePly; } inline bool Position::opposite_bishops() const {