From 517f9dd2dc682986409a7dfc1e492b7723d32dbb Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 28 Jun 2007 21:40:49 +0200 Subject: [PATCH] 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. --- remoteglot.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2