]> git.sesse.net Git - stockfish/blobdiff - src/uci.cpp
Rewrite syzygy in C++
[stockfish] / src / uci.cpp
index b195b871346cdd4b03a331a685a19d5294cf3969..0b3e3a51ddc92fb60c55ede46d6e69349cf4cf49 100644 (file)
@@ -29,6 +29,7 @@
 #include "thread.h"
 #include "timeman.h"
 #include "uci.h"
+#include "syzygy/tbprobe.h"
 
 using namespace std;
 
@@ -186,6 +187,7 @@ void UCI::loop(int argc, char* argv[]) {
       else if (token == "ucinewgame")
       {
           Search::clear();
+          Tablebases::init(Options["SyzygyPath"]);
           Time.availableNodes = 0;
       }
       else if (token == "isready")    sync_cout << "readyok" << sync_endl;