]> git.sesse.net Git - stockfish/blobdiff - src/thread.cpp
Introduce simple_eval() for lazy evaluations
[stockfish] / src / thread.cpp
index 9cf85310c39c96a49cc0b752fe874c7a83b99111..60f760ed46ee48bf70b0157773d668b6a5793cfa 100644 (file)
@@ -27,6 +27,7 @@
 #include <memory>
 #include <utility>
 
+#include "evaluate.h"
 #include "misc.h"
 #include "movegen.h"
 #include "search.h"
@@ -212,6 +213,7 @@ void ThreadPool::start_thinking(Position& pos, StateListPtr& states,
       th->rootMoves = rootMoves;
       th->rootPos.set(pos.fen(), pos.is_chess960(), &th->rootState, th);
       th->rootState = setupStates->back();
+      th->rootSimpleEval = Eval::simple_eval(pos, pos.side_to_move());
   }
 
   main()->start_searching();