mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 15:37:47 +00:00
Fix consistency between PV and bestmove output
In case that a non-root mainThread on a node is the new best thread in the cluster, it should always output its PV.
This commit is contained in:
committed by
Stéphane Nicolet
parent
2405b38165
commit
80afeb0d3b
+1
-1
@@ -297,7 +297,7 @@ void MainThread::search() {
|
||||
|
||||
if (mi.rank == Cluster::rank()) {
|
||||
// Send again PV info if we have a new best thread
|
||||
if (bestThread != this)
|
||||
if (!Cluster::is_root() || bestThread != this)
|
||||
sync_cout << UCI::pv(bestThread->rootPos, bestThread->completedDepth, -VALUE_INFINITE, VALUE_INFINITE) << sync_endl;
|
||||
|
||||
sync_cout << "bestmove " << UCI::move(bestThread->rootMoves[0].pv[0], rootPos.is_chess960());
|
||||
|
||||
Reference in New Issue
Block a user