Skip to content

Commit 501e769

Browse files
committed
nurikabe/frame2: fix up off-by-one
1 parent b7e8e9a commit 501e769

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nurikabe/frame2

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ sub count {
137137

138138
sub count_all {
139139
my($width, $length, $block) = @_;
140-
my $sum = $zero; # count the zero-item up front
140+
my $sum = $zone; # count the zero-item up front
141141
for my $i (1 .. $width) {
142142
for my $j (1 .. $length) {
143143
$sum += count($i, $j, $block)

0 commit comments

Comments
 (0)