Commits

Anonymous committed 0213dd9

Create a ->solve API method that will later be extended.

Comments (0)

Files changed (1)

abc-path/perl-quick-and-dirty/abc-path-solver.pl

     return $self->_flush_changed;
 }
 
-sub neighbourhood_and_individuality_inferring
+sub _neighbourhood_and_individuality_inferring
 {
     my ($self) = @_;
 
     return $num_changed;
 }
 
+sub solve
+{
+    my ($self) = @_;
+
+    $self->_neighbourhood_and_individuality_inferring;
+
+    return;
+}
+
 my $letter_re_s = join('', map { quotemeta($_) } @letters);
 my $letter_re = qr{[$letter_re_s]};
 my $letter_and_space_re = qr{[ $letter_re_s]};
 my $solver = Games::ABC_Path::Solver::Board->input_from_file($board_fn);
 # Now let's do a neighbourhood inferring of the board.
 
-$solver->neighbourhood_and_individuality_inferring;
+$solver->solve;
 
 foreach my $move (@{$solver->get_moves})
 {