summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a60af16)
other side's king is a valid way of getting out of mate.
for my $row (0..7) {
for my $col (0..7) {
my $piece = substr($board->[$row], $col, 1);
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
if (uc($piece) eq $piece) {
# white piece