]> git.sesse.net Git - remoteglot/commitdiff
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 2b81e5c9566bd2ae7c6069e2401407ed7ef1486d..699968f3afdccb6ec45a5cf6c73f670aa3c9905f 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;