#include <string>
#include "evaluate.h"
+#include "notation.h"
#include "position.h"
#include "search.h"
#include "thread.h"
+#include "tt.h"
#include "ucioption.h"
using namespace std;
/// 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;
go(pos, is);
else if (token == "ucinewgame")
- { /* Avoid returning "Unknown command" */ }
+ TT.clear();
else if (token == "isready")
cout << "readyok" << endl;