输出最佳着法时带上 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 #ifdef QT_UI
emit command(strCommand); emit command(strCommand);
#else #else
loggerDebug("%s\n", strCommand.c_str()); sync_cout << "bestmove " << strCommand.c_str();
std::cout << sync_endl;
rootPos->command(strCommand.c_str()); rootPos->command(strCommand.c_str());
us = rootPos->side_to_move(); us = rootPos->side_to_move();
#ifdef ANALYZE_POSITION #ifdef ANALYZE_POSITION