X-Git-Url: https://git.sesse.net/?p=remoteglot;a=blobdiff_plain;f=remoteglot.pl;h=9439a4bc4d0b063c59b1eb2738cc9cd0c4b987d5;hp=e021c664894e4fb0a077f82ec81d79abff6fc61b;hb=f26a218756768fcbbbcd332e56029053e359003c;hpb=48c786c43fab6dfe37c0fe70aa474431f33d2b27 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;