From: Steinar H. Gunderson Date: Tue, 22 Nov 2016 00:10:21 +0000 (+0100) Subject: Fix an issue where we would error out if we called fathom in a position that was... X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=7e024a357aba48a02f638c48c7717dc172bab022;hp=d74a69f327e46402ee647e2b0eba4c24e6914d27 Fix an issue where we would error out if we called fathom in a position that was already mate. --- 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;