#include "position.h"
#include "search.h"
#include "thread.h"
-#include "tt.h"
#include "uci.h"
using namespace std;
Options["Hash"] = ttSize;
Options["Threads"] = threads;
- TT.clear();
+ Search::reset();
if (limitType == "time")
limits.movetime = stoi(limit); // movetime is in ms
}
uint64_t nodes = 0;
- Search::StateStackPtr st;
TimePoint elapsed = now();
for (size_t i = 0; i < fens.size(); ++i)
else
{
+ Search::StateStackPtr st;
Threads.start_thinking(pos, limits, st);
- Threads.wait_for_think_finished();
+ Threads.main()->join();
nodes += Search::RootPos.nodes_searched();
}
}