1. Shlomi Fish
  2. abc-path

Commits

shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b  committed 0213dd9

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

  • Participants
  • Parent commits 59de168
  • Branches default

Comments (0)

Files changed (1)

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

View file
     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})
 {