X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fuci.cpp;h=7e2f7ddf9e97df0ba9080ffee4893464793a908f;hp=0ba4de3bddeb3cb9dd8c87eab097ed0a41afe00c;hb=2c1ba2ab0dad2421b8ed1bd3c049634f1f00dfc3;hpb=9546b79e204faef2e2759b481b09a97bdab0fb76 diff --git a/src/uci.cpp b/src/uci.cpp index 0ba4de3b..7e2f7ddf 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -22,9 +22,11 @@ #include #include "evaluate.h" +#include "notation.h" #include "position.h" #include "search.h" #include "thread.h" +#include "tt.h" #include "ucioption.h" using namespace std; @@ -52,7 +54,7 @@ namespace { /// that we exit gracefully if the GUI dies unexpectedly. In addition to the UCI /// commands, the function also supports a few debug commands. -void uci_loop(const string& args) { +void UCI::loop(const string& args) { Position pos(StartFEN, false, Threads.main_thread()); // The root position string cmd, token; @@ -93,7 +95,7 @@ void uci_loop(const string& args) { go(pos, is); else if (token == "ucinewgame") - { /* Avoid returning "Unknown command" */ } + TT.clear(); else if (token == "isready") cout << "readyok" << endl;