Commits

Anonymous committed 695d9ac

Renamed a variable.

Comments (0)

Files changed (1)

nurikabe-solver/Games-Nurikabe-Solver/lib/Games/Nurikabe/Solver/Board.pm

 
                 my %adjacent_unknowns;
 
-                my $this_black_region_cells_count = 0;
+                my $cells_count = 0;
 
                 # TODO : abstract all BrFS searches into a common code.
                 QUEUE_LOOP:
                     }
 
                     $q_c->already_processed(1);
-                    $this_black_region_cells_count++;
+                    $cells_count++;
 
                     $self->_vicinity_loop(
                         $coords,
                 # Make sure we don't expand a black region that contains
                 # all known black cells in the board, because these cells
                 # may well as be white.
-                if (($this_black_region_cells_count < 
-                    $self->_found_totals->{$NK_BLACK})
-                        && (@k == 1)
+                if (
+                    ($cells_count < $self->_found_totals->{$NK_BLACK})
+                        && 
+                    (@k == 1)
                 )
                 {
                     # Bingo - this black region only has one cell to expand to.