mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-06 10:53:50 +08:00
Fix bestmove output in multi PV case
When MultiPV > 1, always take bestmove from the RootMoveList (and don't bother with a ponder move). Without that the bestmove is most probably incorrect. Patch from Peter Petrov. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -661,7 +661,7 @@ namespace {
|
||||
<< " time " << current_search_time() << endl;
|
||||
|
||||
// Print the best move and the ponder move to the standard output
|
||||
if (pv[0] == MOVE_NONE)
|
||||
if (pv[0] == MOVE_NONE || MultiPV > 1)
|
||||
{
|
||||
pv[0] = rml.move(0);
|
||||
pv[1] = MOVE_NONE;
|
||||
|
||||
Reference in New Issue
Block a user