输出最佳着法时带上 bestmove 前缀

This commit is contained in:
Calcitem 2020-10-25 00:25:59 +08:00
parent bd93195566
commit 1cc5b07702
1 changed files with 3 additions and 1 deletions

View File

@ -188,7 +188,9 @@ void Thread::emitCommand()
#ifdef QT_UI
emit command(strCommand);
#else
loggerDebug("%s\n", strCommand.c_str());
sync_cout << "bestmove " << strCommand.c_str();
std::cout << sync_endl;
rootPos->command(strCommand.c_str());
us = rootPos->side_to_move();
#ifdef ANALYZE_POSITION