Fix an issue where we would error out if we called fathom in a position that was...
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 22 Nov 2016 00:10:21 +0000 (01:10 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 22 Nov 2016 00:10:21 +0000 (01:10 +0100)
remoteglot.pl

index 2b81e5c..699968f 100755 (executable)
@@ -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;