X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fsearch.h;h=63b9b3264a7fb1f138bbe7e6705e119602069251;hb=0a003d3ba1e3082132606d06159693aaa805a138;hp=c957c34bf6259b1107ddd860209454ffffed9351;hpb=4124c94583c8f618738e4e357d86bc8579a5cde5;p=stockfish diff --git a/src/search.h b/src/search.h index c957c34b..63b9b326 100644 --- a/src/search.h +++ b/src/search.h @@ -21,11 +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 { @@ -79,7 +82,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; }; @@ -90,13 +93,17 @@ 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 StateStackPtr SetupStates; extern void init(); -extern int64_t perft(Position& pos, Depth depth); +extern size_t perft(Position& pos, Depth depth); extern void think(); } // namespace Search