X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fthread.cpp;h=60f760ed46ee48bf70b0157773d668b6a5793cfa;hb=b25d68f6ee2d016cc0c14b076e79e6c44fdaea2a;hp=202768c863cc9e1f6ca7d0f38de44fb9f1674a43;hpb=b36d39de3d61b8f31c11d85233631aafaf760ee1;p=stockfish diff --git a/src/thread.cpp b/src/thread.cpp index 202768c8..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 { @@ -160,7 +169,6 @@ void ThreadPool::clear() { main()->bestPreviousScore = VALUE_INFINITE; main()->bestPreviousAverageScore = VALUE_INFINITE; main()->previousTimeReduction = 1.0; - main()->complexity = 1.0; } @@ -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();