X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fthread.cpp;h=60f760ed46ee48bf70b0157773d668b6a5793cfa;hb=b25d68f6ee2d016cc0c14b076e79e6c44fdaea2a;hp=c680393e27752135aa95ea76943233bc539fb83e;hpb=d4d1cec29631f041adeec98adc5893b5c6a54969;p=stockfish diff --git a/src/thread.cpp b/src/thread.cpp index c680393e..60f760ed 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -16,15 +16,24 @@ along with this program. If not, see . */ -#include +#include "thread.h" -#include // For std::count +#include +#include +#include +#include +#include +#include +#include +#include + +#include "evaluate.h" +#include "misc.h" #include "movegen.h" #include "search.h" -#include "thread.h" -#include "uci.h" #include "syzygy/tbprobe.h" #include "tt.h" +#include "uci.h" namespace Stockfish { @@ -204,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();