1. Shlomi Fish
  2. abc-path

Commits

shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b  committed 2d9ac53

Add infer letters.

  • Participants
  • Parent commits 89d0902
  • Branches default

Comments (0)

Files changed (1)

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

View file
  • Ignore whitespace
     return join(',', @{$self->get_possible_letters_for_cell($x,$y)});
 }
 
-sub _inference_iteration
+
+sub _infer_letters
 {
     my ($self) = @_;
 
         }
     }
 
+    return $num_changed;
+}
+
+sub _inference_iteration
+{
+    my ($self) = @_;
+
+    my $num_changed = 0;
+
+    $num_changed += $self->_infer_letters;
+
     $self->xy_loop(sub {
         my ($x, $y) = @_;