From f26a218756768fcbbbcd332e56029053e359003c Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Wed, 23 Mar 2016 20:25:42 +0100 Subject: [PATCH] Fix a bug where fathom would cause all winning multi-PV lines to be the same. --- remoteglot.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/remoteglot.pl b/remoteglot.pl index e021c66..9439a4b 100755 --- a/remoteglot.pl +++ b/remoteglot.pl @@ -558,6 +558,13 @@ sub complete_using_tbprobe { if (exists($pos->{'tbprobe_cache'}{$key})) { @moves = $pos->{'tbprobe_cache'}{$key}; } else { + if ($mpv ne '') { + # Force doing at least one move of the PV. + my $move = shift @pv; + push @moves, $move; + $pos = $pos->make_move(parse_uci_move($move)); + } + while ($pos->num_pieces() > 6 && $#pv > -1) { my $move = shift @pv; push @moves, $move; -- 2.39.2