X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbenchmark.cpp;h=ba05ac7fb8af7561bfd425e8dc1f4cdcfe738f16;hp=1491e222ea4b108bb726bdb557b7feae12349baa;hb=103b368ab7f5fd696e0c6925917344d15a3c2d9c;hpb=a29dd88f7563c5af871d9adc137218c39586b09c diff --git a/src/benchmark.cpp b/src/benchmark.cpp index 1491e222..ba05ac7f 100644 --- a/src/benchmark.cpp +++ b/src/benchmark.cpp @@ -19,7 +19,6 @@ #include #include -#include #include #include "misc.h" @@ -29,7 +28,6 @@ #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", @@ -62,7 +60,7 @@ static const char* Defaults[] = { void benchmark(int argc, char* argv[]) { vector fens; - LimitsType limits; + Search::LimitsType limits; int time; int64_t nodes = 0; @@ -116,14 +114,14 @@ void benchmark(int argc, char* argv[]) { 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(), false); - nodes += RootPosition.nodes_searched(); + Threads.start_thinking(pos, limits); + nodes += Search::RootPosition.nodes_searched(); } }