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:
parent
200fc56e9c
commit
6ed409ecee
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue