1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-29 16:23:09 +00: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:
Marco Costalba 2010-11-28 17:05:49 +01:00
parent 200fc56e9c
commit 6ed409ecee

View file

@ -661,7 +661,7 @@ namespace {
<< " time " << current_search_time() << endl; << " time " << current_search_time() << endl;
// Print the best move and the ponder move to the standard output // 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[0] = rml.move(0);
pv[1] = MOVE_NONE; pv[1] = MOVE_NONE;