]> git.sesse.net Git - stockfish/blobdiff - src/search.h
Rewrite the way application exits
[stockfish] / src / search.h
index 0bdabdac6507cf89859eb2d3aec83e4b2264cf09..bef8bf2e6b980ebab35f7ddf2d89c598a2429582 100644 (file)
@@ -55,11 +55,13 @@ const int KILLER_MAX = 2;
 struct SearchStack {
   Move pv[PLY_MAX];
   Move currentMove;
-  Value currentMoveCaptureValue;
   Move mateKiller;
   Move threatMove;
   Move killers[KILLER_MAX];
   Depth reduction;
+
+  void init(int ply);
+  void initKillers();
 };
 
 
@@ -82,7 +84,7 @@ extern History H;
 
 extern void init_threads();
 extern void stop_threads();
-extern void think(const Position &pos, bool infinite, bool ponder, int side_to_move,
+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 int64_t nodes_searched();