X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fthread.cpp;h=60f760ed46ee48bf70b0157773d668b6a5793cfa;hb=b25d68f6ee2d016cc0c14b076e79e6c44fdaea2a;hp=ca1a7c852731d11b530b10ccea2d42ea5d5573e6;hpb=5a88c5bb9b3e5ee431ac85abb8981b1571b68b2d;p=stockfish diff --git a/src/thread.cpp b/src/thread.cpp index ca1a7c85..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 { @@ -60,7 +69,6 @@ void Thread::clear() { counterMoves.fill(MOVE_NONE); mainHistory.fill(0); captureHistory.fill(0); - previousDepth = 0; for (bool inCheck : { false, true }) for (StatsType c : { NoCaptures, Captures }) @@ -205,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();