X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fuci.cpp;h=c8f504463cef969db7a72c9816d3c23fd6f18b94;hp=17079239bc8d4b1e2fd1f980152e86650e2000ab;hb=cd782c11ec8e765e3a323e422cea19d7d053a07c;hpb=aa2368a6878a867fe63247ee2adf2fde3dfe22be diff --git a/src/uci.cpp b/src/uci.cpp index 17079239..c8f50446 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; @@ -102,7 +103,7 @@ void UCI::loop(const string& args) { << "\n" << Options << "\nuciok" << 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") set_position(pos, is); else if (token == "setoption") set_option(is);