Anonymous avatar 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.
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.