Commits

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;
         }