]> git.sesse.net Git - stockfish/blobdiff - src/benchmark.cpp
Move struct RootMove to Search namespace
[stockfish] / src / benchmark.cpp
index b43f0ee527392af234c9490e96ca2e560a3d40a5..ba05ac7fb8af7561bfd425e8dc1f4cdcfe738f16 100644 (file)
@@ -28,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",
@@ -61,7 +60,7 @@ static const char* Defaults[] = {
 void benchmark(int argc, char* argv[]) {
 
   vector<string> fens;
-  LimitsType limits;
+  Search::LimitsType limits;
   int time;
   int64_t nodes = 0;
 
@@ -115,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, vector<Move>(), false);
-          nodes += RootPosition.nodes_searched();
+          Threads.start_thinking(pos, limits);
+          nodes += Search::RootPosition.nodes_searched();
       }
   }