From: Steinar H. Gunderson Date: Thu, 28 Jun 2007 19:40:49 +0000 (+0200) Subject: Fix an issue where the prettyprinter would think that moving next to the X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=517f9dd2dc682986409a7dfc1e492b7723d32dbb Fix an issue where the prettyprinter would think that moving next to the other side's king is a valid way of getting out of mate. --- diff --git a/remoteglot.pl b/remoteglot.pl index f6a9402..eecad8f 100755 --- a/remoteglot.pl +++ b/remoteglot.pl @@ -542,7 +542,7 @@ sub in_check { for my $row (0..7) { for my $col (0..7) { my $piece = substr($board->[$row], $col, 1); - next if ($piece eq '-' || lc($piece) eq 'k'); + next if ($piece eq '-'); if (uc($piece) eq $piece) { # white piece