Shlomi Fish avatar Shlomi Fish committed 4e8409f

Renamed a method to a shorter name.

Comments (0)

Files changed (1)

abc-path/Games-ABC_Path-Generator/lib/Games/ABC_Path/Generator.pm

 }
 
 
-sub _fisher_yates_shuffle {
+sub _shuffle {
     my ($self, $deck) = @_;
 
     return $self->{'rand'}->shuffle($deck);
 
     vec($l, $cell_int, 8) = 1+@$stack;
     my $cells = $self->_get_next_cells($l, $cell_int);
-    $self->_fisher_yates_shuffle($cells);
+    $self->_shuffle($cells);
 
     push @$stack, [$l, $cells];
 
                 # Yay! We found a configuration.
                 my $handle_clue = sub {
                     my @cells = @{shift->{cells}};
-                    $self->_fisher_yates_shuffle(\@cells);
+                    $self->_shuffle(\@cells);
                     return [map { $layout->get_cell_contents($_) } @cells];
                 };
                 my $riddle =
                 }
             }
 
-            $self->_fisher_yates_shuffle(\@pairs);
+            $self->_shuffle(\@pairs);
 
             $last_state->{pos_pairs} = \@pairs;
         }
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.