]> git.sesse.net Git - stockfish/blobdiff - src/benchmark.cpp
Teach 'bench' to run current position
[stockfish] / src / benchmark.cpp
index 67902062f6cfa9b6e206cf91fe97885583fa76cd..0417313cbb6bf3ac22ba5733cd77bda68fc3212f 100644 (file)
@@ -83,7 +83,12 @@ void benchmark(istringstream& is) {
   else
       limits.depth = atoi(limit.c_str());
 
   else
       limits.depth = atoi(limit.c_str());
 
-  if (fenFile != "default")
+  if (fenFile == "current")
+  {
+      fens.clear();
+      fens.push_back(Search::RootPosition.to_fen());
+  }
+  else if (fenFile != "default")
   {
       fens.clear();
       string fen;
   {
       fens.clear();
       string fen;