X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=remoteglot.pl;h=454cc324108dd33b77766e369b278fd846198b65;hb=7055c4a7a39cf5e44881e19b18368d628eb4fe34;hp=a2a5e5ee9594646332d3657600113a0152fd49e4;hpb=6023d7da024242fad8af8258a29472ad93a34671;p=remoteglot diff --git a/remoteglot.pl b/remoteglot.pl index a2a5e5e..454cc32 100644 --- a/remoteglot.pl +++ b/remoteglot.pl @@ -260,7 +260,7 @@ sub prettyprint_pv { } # white long castling - if ($pv eq 'e1b1' && $piece eq 'K') { + if ($pv eq 'e1c1' && $piece eq 'K') { my @nb = @$board; # king @@ -269,7 +269,7 @@ sub prettyprint_pv { # rook substr($nb[7], 0, 1, '-'); - substr($nb[7], 2, 1, 'R'); + substr($nb[7], 3, 1, 'R'); return ('0-0-0', prettyprint_pv(\@nb, @pvs)); } @@ -290,7 +290,7 @@ sub prettyprint_pv { } # black long castling - if ($pv eq 'e8b8' && $piece eq 'k') { + if ($pv eq 'e8c8' && $piece eq 'k') { my @nb = @$board; # king @@ -299,7 +299,7 @@ sub prettyprint_pv { # rook substr($nb[0], 0, 1, '-'); - substr($nb[0], 2, 1, 'R'); + substr($nb[0], 3, 1, 'R'); return ('0-0-0', prettyprint_pv(\@nb, @pvs)); }