X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fuci.cpp;h=395b78a813bf4e9342a14ba44f7ef78e3ba9f6aa;hp=caf1b5c2fed08d67084b09c584ba1c7f4c7716c1;hb=8f5deaea61e8aa754b324b809cc8f7f394dc7e0f;hpb=c5bb9b9da943c49fbead1507ba7213bd7fb5e415 diff --git a/src/uci.cpp b/src/uci.cpp index caf1b5c2..395b78a8 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -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);