else if (limitType == "nodes")
limits.nodes = atoi(limit.c_str());
+ else if (limitType == "mate")
+ limits.mate = atoi(limit.c_str());
+
else
limits.depth = atoi(limit.c_str());
fens.assign(Defaults, Defaults + 16);
else if (fenFile == "current")
- fens.push_back(current.to_fen());
+ fens.push_back(current.fen());
else
{
if (!file.is_open())
{
cerr << "Unable to open file " << fenFile << endl;
- exit(EXIT_FAILURE);
+ return;
}
while (getline(file, fen))
}
else
{
- Threads.start_searching(pos, limits, vector<Move>(), st);
- Threads.wait_for_search_finished();
- nodes += Search::RootPosition.nodes_searched();
+ Threads.start_thinking(pos, limits, vector<Move>(), st);
+ Threads.wait_for_think_finished();
+ nodes += Search::RootPos.nodes_searched();
}
}