Fix a bug of outputting multiple lines of bestmove

This commit is contained in:
noobpwnftw
2018-07-09 01:01:58 +08:00
committed by Stéphane Nicolet
parent 29c166a072
commit 3b7b632aa5
+1 -1
View File
@@ -293,7 +293,7 @@ void MainThread::search() {
previousScore = static_cast<Value>(mi.score);
// Send again PV info if we have a new best thread
if (mi.rank == Cluster::rank()) {
if (Cluster::is_root()) {
if (bestThread != this)
sync_cout << UCI::pv(bestThread->rootPos, bestThread->completedDepth, -VALUE_INFINITE, VALUE_INFINITE) << sync_endl;