X-Git-Url: https://git.sesse.net/?p=remoteglot;a=blobdiff_plain;f=remoteglot.pl;h=b128e29735b99e7a520d1d31ecec61db0d7cfe40;hp=4e6edc68308f3524b252c765d61394126107f6cc;hb=96875773d3cd75a57b13cba9d1497c616cf76503;hpb=25b4c5b0537cb335c09c7b1bf4e765c5aa6cf412 diff --git a/remoteglot.pl b/remoteglot.pl index 4e6edc6..b128e29 100755 --- a/remoteglot.pl +++ b/remoteglot.pl @@ -266,7 +266,8 @@ sub handle_pgn { my $moves = $pgn->moves; my @uci_moves = (); for my $move (@$moves) { - my ($pos, $uci_move) = $pos->make_pretty_move($move); + my $uci_move; + ($pos, $uci_move) = $pos->make_pretty_move($move); push @uci_moves, $uci_move; } $pos->{'history'} = \@uci_moves; @@ -930,7 +931,8 @@ sub handle_tb_lookup_return { my $moves = $pgn->moves; my @uci_moves = (); for my $move (@$moves) { - my ($pvpos, $uci_move) = $pvpos->make_pretty_move($move); + my $uci_move; + ($pvpos, $uci_move) = $pvpos->make_pretty_move($move); push @uci_moves, $uci_move; } $tb_cache{$fen} = {