X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.h;h=c7abb9dcfd97a2b5b47b87f798fc4e5718cd2bb7;hp=4e1d3c351ea51db7e887faff24d4c337e06c1919;hb=5066e17eba4b9d4217a8d173de56e40e0e05fc6d;hpb=2e86d1febc163e076320a6a21060fc5a1c7c0dff diff --git a/src/search.h b/src/search.h index 4e1d3c35..c7abb9dc 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 @@ -87,6 +88,7 @@ struct LimitsType { std::vector searchmoves; int time[COLOR_NB], inc[COLOR_NB], npmsec, movestogo, depth, movetime, mate, infinite, ponder; int64_t nodes; + TimePoint startTime; }; /// The SignalsType struct stores volatile flags updated during the search @@ -100,12 +102,9 @@ typedef std::unique_ptr> StateStackPtr; extern volatile SignalsType Signals; extern LimitsType Limits; -extern RootMoveVector RootMoves; -extern Position RootPos; extern StateStackPtr SetupStates; void init(); -void think(); void reset(); template uint64_t perft(Position& pos, Depth depth);