X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.h;h=08981c7de58f137190cb5e042be04fbb3feddbdd;hp=d580b54695744fe79a62e6c777adbca4ddafc61c;hb=e304db9d1ecf6a2318708483c90fadecf4fac4ee;hpb=4b19430103ac75b574a6b269db447d359814b603 diff --git a/src/search.h b/src/search.h index d580b546..08981c7d 100644 --- a/src/search.h +++ b/src/search.h @@ -21,12 +21,14 @@ #define SEARCH_H_INCLUDED #include +#include +#include #include #include "misc.h" +#include "position.h" #include "types.h" -class Position; struct SplitPoint; namespace Search { @@ -80,7 +82,7 @@ struct LimitsType { LimitsType() { memset(this, 0, sizeof(LimitsType)); } bool use_time_management() const { return !(movetime | depth | nodes | infinite); } - int time[2], inc[2], movestogo, depth, nodes, movetime, infinite, ponder; + int time[COLOR_NB], inc[COLOR_NB], movestogo, depth, nodes, movetime, infinite, ponder; }; @@ -91,11 +93,15 @@ struct SignalsType { bool stopOnPonderhit, firstRootMove, stop, failedLowAtRoot; }; +typedef std::auto_ptr > StateStackPtr; + extern volatile SignalsType Signals; extern LimitsType Limits; extern std::vector RootMoves; extern Position RootPosition; -extern Time SearchTime; +extern Color RootColor; +extern Time::point SearchTime; +extern StateStackPtr SetupStates; extern void init(); extern size_t perft(Position& pos, Depth depth);