|
@@ -15,6 +15,7 @@ const map<std::string, UciParser::CommandHandler> UciParser::commandHandlers = {
|
|
|
{"ucinewgame", &UciParser::ucinewgame },
|
|
|
{"position", &UciParser::position },
|
|
|
{"go", &UciParser::go },
|
|
|
+ {"stop", &UciParser::stop },
|
|
|
{"quit", &UciParser::quit },
|
|
|
{"getfen", &UciParser::getfen},
|
|
|
};
|
|
@@ -74,6 +75,7 @@ int UciParser::executeCommand(const string& command,
|
|
|
void UciParser::sendCommand(const std::string& command,
|
|
|
const std::vector<std::string>& args)
|
|
|
{
|
|
|
+ std::unique_lock<std::mutex> lock { outStreamLock };
|
|
|
cout << command;
|
|
|
std::for_each(args.begin(), args.end(), [] (auto& x) { cout << " " << x; });
|
|
|
cout << endl;
|
|
@@ -162,6 +164,12 @@ void UciParser::go(const vector<string>& args)
|
|
|
}
|
|
|
|
|
|
|
|
|
+void UciParser::stop(const vector<string>& args)
|
|
|
+{
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
void UciParser::quit(const vector<string>& args)
|
|
|
{
|
|
|
quitting = true;
|