#include <fstream>
#include <iostream>
-#include <set>
#include <vector>
#include "misc.h"
#include "ucioption.h"
using namespace std;
-using namespace Search;
static const char* Defaults[] = {
"rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1",
void benchmark(int argc, char* argv[]) {
vector<string> fens;
- LimitsType limits;
+ Search::LimitsType limits;
int time;
int64_t nodes = 0;
if (valType == "perft")
{
- int64_t cnt = perft(pos, limits.maxDepth * ONE_PLY);
+ int64_t cnt = Search::perft(pos, limits.maxDepth * ONE_PLY);
cerr << "\nPerft " << limits.maxDepth << " leaf nodes: " << cnt << endl;
nodes += cnt;
}
else
{
- Threads.start_thinking(pos, limits, set<Move>(), false);
- nodes += RootPosition.nodes_searched();
+ Threads.start_thinking(pos, limits);
+ nodes += Search::RootPosition.nodes_searched();
}
}