From 7e024a357aba48a02f638c48c7717dc172bab022 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Tue, 22 Nov 2016 01:10:21 +0100 Subject: [PATCH 1/1] Fix an issue where we would error out if we called fathom in a position that was already mate. --- remoteglot.pl | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.2