]> git.sesse.net Git - stockfish/blobdiff - src/uci.cpp
Restore development version
[stockfish] / src / uci.cpp
index caf1b5c2fed08d67084b09c584ba1c7f4c7716c1..395b78a813bf4e9342a14ba44f7ef78e3ba9f6aa 100644 (file)
@@ -27,6 +27,7 @@
 #include "position.h"
 #include "search.h"
 #include "thread.h"
+#include "tt.h"
 #include "ucioption.h"
 
 using namespace std;
@@ -107,7 +108,7 @@ void UCI::loop(const string& args) {
           Search::RootColor = pos.side_to_move(); // Ensure it is set
           sync_cout << Eval::trace(pos) << sync_endl;
       }
-      else if (token == "ucinewgame") { /* Avoid returning "Unknown command" */ }
+      else if (token == "ucinewgame") TT.clear();
       else if (token == "go")         go(pos, is);
       else if (token == "position")   position(pos, is);
       else if (token == "setoption")  setoption(is);