]> git.sesse.net Git - stockfish/blobdiff - src/search.h
Introduce enum SquareColor
[stockfish] / src / search.h
index 73a1dcf0d508410a3116103b7d3314b2db9fc310..00e2cd4ac38b0349f7063c3a7de48518df1f16d8 100644 (file)
@@ -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)