X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=391e556879c14081139dddcc721de89cf46b1649;hp=183530fc61d731e7c03cfa6b8ee569953a1676f1;hb=c0616d773dcb967dad755de74c36937fc5753b63;hpb=87139d018c86211a0636cb1bcedf9572670d9ba6 diff --git a/src/position.cpp b/src/position.cpp index 183530fc..391e5568 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -1505,6 +1505,7 @@ void Position::clear() { st = &startState; memset(st, 0, sizeof(StateInfo)); st->epSquare = SQ_NONE; + startPosPlyCounter = 0; memset(byColorBB, 0, sizeof(Bitboard) * 2); memset(byTypeBB, 0, sizeof(Bitboard) * 8); @@ -1539,6 +1540,10 @@ void Position::reset_game_ply() { st->gamePly = 0; } +void Position::inc_startpos_ply_counter() { + + startPosPlyCounter++; +} /// Position::put_piece() puts a piece on the given square of the board, /// updating the board array, bitboards, and piece counts.