]> git.sesse.net Git - stockfish/blobdiff - src/uci.cpp
TT entry value based on depth and relative age
[stockfish] / src / uci.cpp
index 2c07807c1b678b2ee0bfb26325439b3853781ffa..b8b371acfc036a4a08570773d058b28ef12173fe 100644 (file)
@@ -26,7 +26,7 @@
 #include "position.h"
 #include "search.h"
 #include "thread.h"
-#include "tt.h"
+#include "timeman.h"
 #include "uci.h"
 
 using namespace std;
@@ -178,8 +178,12 @@ void UCI::loop(int argc, char* argv[]) {
                     << "\n"       << Options
                     << "\nuciok"  << sync_endl;
 
+      else if (token == "ucinewgame")
+      {
+          Search::reset();
+          Time.availableNodes = 0;
+      }
       else if (token == "isready")    sync_cout << "readyok" << sync_endl;
-      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);