X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.h;h=00e2cd4ac38b0349f7063c3a7de48518df1f16d8;hp=73a1dcf0d508410a3116103b7d3314b2db9fc310;hb=935fc09fd49328adfeaad372a5f4f2c48d8caf44;hpb=5804bef824587c16da4a956c51f55a2adb626199 diff --git a/src/search.h b/src/search.h index 73a1dcf0..00e2cd4a 100644 --- a/src/search.h +++ b/src/search.h @@ -36,7 +36,6 @@ const int PLY_MAX = 100; const int PLY_MAX_PLUS_2 = 102; -const int KILLER_MAX = 2; //// @@ -50,17 +49,14 @@ const int KILLER_MAX = 2; struct EvalInfo; struct SearchStack { - Move pv[PLY_MAX_PLUS_2]; Move currentMove; Move mateKiller; - Move threatMove; Move excludedMove; - Move killers[KILLER_MAX]; + Move bestMove; + Move killers[2]; Depth reduction; Value eval; - - void init(int ply); - void initKillers(); + bool skipNullMove; }; @@ -71,11 +67,9 @@ struct SearchStack { extern void init_search(); extern void init_threads(); extern void exit_threads(); -extern bool think(const Position &pos, bool infinite, bool ponder, int side_to_move, - int time[], int increment[], int movesToGo, int maxDepth, - int maxNodes, int maxTime, Move searchMoves[]); -extern int perft(Position &pos, Depth depth); +extern int perft(Position& pos, Depth depth); extern int64_t nodes_searched(); - +extern bool think(const Position& pos, bool infinite, bool ponder, int time[], int increment[], + int movesToGo, int maxDepth, int maxNodes, int maxTime, Move searchMoves[]); #endif // !defined(SEARCH_H_INCLUDED)