ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Games-Go-SGF-Grove/Grove.pm
(Generate patch)

Comparing Games-Go-SGF-Grove/Grove.pm (file contents):
Revision 1.17 by root, Mon Jul 21 20:59:17 2008 UTC vs.
Revision 1.18 by elmex, Thu Jul 24 08:39:21 2008 UTC

481 if ($_[1] =~ /^([^:]+):(.*)$/) { 481 if ($_[1] =~ /^([^:]+):(.*)$/) {
482 my ($ul, $dr) = ($1, $2); 482 my ($ul, $dr) = ($1, $2);
483 my ($x1, $y1) = map $char2coord{$_}, split //, $ul; 483 my ($x1, $y1) = map $char2coord{$_}, split //, $ul;
484 my ($x2, $y2) = map $char2coord{$_}, split //, $dr; 484 my ($x2, $y2) = map $char2coord{$_}, split //, $dr;
485 my @stones; 485 my @stones;
486 for (my $d = $x1; $d < $x2; $d++) { 486 for (my $d = $x1; $d <= $x2; $d++) {
487 for (my $i = $y1; $i < $y2; $i++) { 487 for (my $i = $y1; $i <= $y2; $i++) {
488 push @stones, [$d, $i]; 488 push @stones, [$d, $i];
489 } 489 }
490 } 490 }
491 return @stones; 491 return @stones;
492 } 492 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines