]> git.sesse.net Git - stockfish/blobdiff - src/evaluate.h
Save futilityMargin for both colors
[stockfish] / src / evaluate.h
index cf56a58aa4a3cb042af7b9d3f54a2b0730e19d3c..067baa3cf2e0c717f98a3f136f6f13ece186a6bf 100644 (file)
@@ -47,6 +47,8 @@ class Position;
 
 struct EvalInfo {
 
 
 struct EvalInfo {
 
+  EvalInfo() { futilityMargin[0] = futilityMargin[1] = Value(0); }
+
   // Middle game and endgame evaluations
   Score value;
 
   // Middle game and endgame evaluations
   Score value;
 
@@ -94,8 +96,8 @@ struct EvalInfo {
   Score mobility;
 
   // Extra futility margin. This is added to the standard futility margin
   Score mobility;
 
   // Extra futility margin. This is added to the standard futility margin
-  // in the quiescence search.
-  Value futilityMargin;
+  // in the quiescence search. One for each color.
+  Value futilityMargin[2];
 };
 
 
 };
 
 
@@ -104,7 +106,6 @@ struct EvalInfo {
 ////
 
 extern Value evaluate(const Position& pos, EvalInfo& ei, int threadID);
 ////
 
 extern Value evaluate(const Position& pos, EvalInfo& ei, int threadID);
-extern Value quick_evaluate(const Position& pos);
 extern void init_eval(int threads);
 extern void quit_eval();
 extern void read_weights(Color sideToMove);
 extern void init_eval(int threads);
 extern void quit_eval();
 extern void read_weights(Color sideToMove);