Options["Hash"] = ttSize;
Options["Threads"] = threads;
- Options["OwnBook"] = false;
if (valType == "time")
limits.maxTime = 1000 * atoi(valStr.c_str()); // maxTime is in ms
}
else
{
- Threads.start_thinking(pos, limits);
+ Threads.start_searching(pos, limits);
+ Threads.wait_for_search_finished();
nodes += Search::RootPosition.nodes_searched();
}
}