X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.h;h=5ba95fe098a5fef94ae7b7418da376fd82d0f619;hp=e233c1c8577059dd4e416a46d829eb4621793592;hb=9f5b31c21df72f60ab02417940ae573621ee7b90;hpb=2dbb1adf2ac3c1655fd6b696c2e73c92e56e78d4 diff --git a/src/search.h b/src/search.h index e233c1c8..5ba95fe0 100644 --- a/src/search.h +++ b/src/search.h @@ -47,6 +47,7 @@ struct Stack { Depth reduction; Value staticEval; bool skipEarlyPruning; + int moveCount; }; /// RootMove struct is used for moves at the root of the tree. For each root move @@ -76,7 +77,7 @@ typedef std::vector RootMoveVector; struct LimitsType { LimitsType() { // Init explicitly due to broken value-initialization of non POD in MSVC - nodes = time[WHITE] = time[BLACK] = inc[WHITE] = inc[BLACK] = movestogo = + nodes = time[WHITE] = time[BLACK] = inc[WHITE] = inc[BLACK] = npmsec = movestogo = depth = movetime = mate = infinite = ponder = 0; } @@ -85,7 +86,7 @@ struct LimitsType { } std::vector searchmoves; - int time[COLOR_NB], inc[COLOR_NB], movestogo, depth, movetime, mate, infinite, ponder; + int time[COLOR_NB], inc[COLOR_NB], npmsec, movestogo, depth, movetime, mate, infinite, ponder; int64_t nodes; }; @@ -102,11 +103,11 @@ extern volatile SignalsType Signals; extern LimitsType Limits; extern RootMoveVector RootMoves; extern Position RootPos; -extern TimePoint SearchTime; extern StateStackPtr SetupStates; void init(); void think(); +void reset(); template uint64_t perft(Position& pos, Depth depth); } // namespace Search