X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.h;h=d580b54695744fe79a62e6c777adbca4ddafc61c;hp=c957c34bf6259b1107ddd860209454ffffed9351;hb=0c6ed5929cb875e1507569424ab13036c5214f9b;hpb=4124c94583c8f618738e4e357d86bc8579a5cde5 diff --git a/src/search.h b/src/search.h index c957c34b..d580b546 100644 --- a/src/search.h +++ b/src/search.h @@ -23,6 +23,7 @@ #include #include +#include "misc.h" #include "types.h" class Position; @@ -79,7 +80,7 @@ struct LimitsType { LimitsType() { memset(this, 0, sizeof(LimitsType)); } bool use_time_management() const { return !(movetime | depth | nodes | infinite); } - int times[2], incs[2], movestogo, depth, nodes, movetime, infinite, ponder; + int time[2], inc[2], movestogo, depth, nodes, movetime, infinite, ponder; }; @@ -94,9 +95,10 @@ extern volatile SignalsType Signals; extern LimitsType Limits; extern std::vector RootMoves; extern Position RootPosition; +extern Time SearchTime; extern void init(); -extern int64_t perft(Position& pos, Depth depth); +extern size_t perft(Position& pos, Depth depth); extern void think(); } // namespace Search