X-Git-Url: https://git.sesse.net/?p=remoteglot;a=blobdiff_plain;f=remoteglot.pl;fp=remoteglot.pl;h=699968f3afdccb6ec45a5cf6c73f670aa3c9905f;hp=2b81e5c9566bd2ae7c6069e2401407ed7ef1486d;hb=7e024a357aba48a02f638c48c7717dc172bab022;hpb=d74a69f327e46402ee647e2b0eba4c24e6914d27 diff --git a/remoteglot.pl b/remoteglot.pl index 2b81e5c..699968f 100755 --- a/remoteglot.pl +++ b/remoteglot.pl @@ -564,6 +564,7 @@ sub complete_using_tbprobe { # Splice the PV from the tablebase onto what we have so far. for my $move (@{$pgn->moves}) { + last if $move eq '#'; my $uci_move; ($pos, $uci_move) = $pos->make_pretty_move($move); push @moves, $uci_move;