From 1cc5b077020ebdf26cd0ad1e8af7f2e9bbcffacc Mon Sep 17 00:00:00 2001 From: Calcitem Date: Sun, 25 Oct 2020 00:25:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BE=93=E5=87=BA=E6=9C=80=E4=BD=B3=E7=9D=80?= =?UTF-8?q?=E6=B3=95=E6=97=B6=E5=B8=A6=E4=B8=8A=20bestmove=20=E5=89=8D?= =?UTF-8?q?=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/thread.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/thread.cpp b/src/thread.cpp index a2bce686..051dd615 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -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