#include "move.h"
#include "position.h"
#include "search.h"
+#include "thread.h"
#include "ucioption.h"
using namespace std;
string cmd, token;
bool quit = false;
- while (!quit && getline(cin, cmd))
+ while (!quit)
{
+ Threads.getline(cmd);
+
istringstream is(cmd);
is >> skipws >> token;
if (token == "quit")
quit = true;
+ else if (token == "stop")
+ { /* avoid to reply "Unknown command: stop" */ }
+
else if (token == "go")
quit = !go(pos, is);