1. Shlomi Fish
  2. nurikabe

Commits

shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b  committed 34014d8

Convert more to _new_coords.

  • Participants
  • Parent commits 9ae58f2
  • Branches default

Comments (0)

Files changed (1)

File nurikabe-solver/Games-Nurikabe-Solver/lib/Games/Nurikabe/Solver/Board.pm

View file
                         {
                             idx => $index,
                             known_cells => [
-                                Games::Nurikabe::Solver::Coords->new(
+                                $self->_new_coords(
                                     { y => $y, x => $x}
-                                )
+                                ),
                             ],
                             order => $num_cells,
                         },
         foreach my $cell (@$row)
         {
             $callback->(
-                Games::Nurikabe::Solver::Coords->new({y => $y, x => $x,}),
+                $self->_new_coords({y => $y, x => $x}),
                 $cell,
             );
         }
     my $add_coord = sub {
         my ($new_y, $new_x) = @_;
 
-        push @ret, 
-            Games::Nurikabe::Solver::Coords->new({y => $new_y, x => $new_x});
+        push @ret, $self->_new_coords({y => $new_y, x => $new_x});
     };
 
     if ($y > 0)