X-Git-Url: https://git.sesse.net/?p=remoteglot;a=blobdiff_plain;f=remoteglot.pl;h=53d5cab390fca0d907ea732639b1924b9a63c832;hp=1d4f7d440694ad2129a7dc71d7fefd06a8147505;hb=68ae519ca55030ec4ee02d3db69fe1368f1737e9;hpb=61a53bad4fc57512897769ef778755a1cf7c0f9e diff --git a/remoteglot.pl b/remoteglot.pl index 1d4f7d4..53d5cab 100755 --- a/remoteglot.pl +++ b/remoteglot.pl @@ -345,6 +345,11 @@ sub style12_to_pos { $pos{'black_castle_q'} = $x[14]; $pos{'time_to_100move_rule'} = $x[15]; $pos{'move_num'} = $x[26]; + if ($x[27] =~ /([a-h][1-8])-([a-h][1-8])/) { + $pos{'last_move_uci'} = $1 . $2; + } else { + $pos{'last_move_uci'} = undef; + } $pos{'last_move'} = $x[29]; $pos{'fen'} = make_fen(\%pos);