Commits

Anonymous committed b8a2b63

Convert to _new_coords.

  • Participants
  • Parent commits 5a7e803

Comments (0)

Files changed (2)

File nurikabe-solver/Games-Nurikabe-Solver/examples/gui.pl

         for my $x (0 .. $board->_width()-1)
         {
             my $status = $board->get_cell(
-                Games::Nurikabe::Solver::Coords->new({y =>$y, x => $x})
+                $board->_new_coords( {y =>$y, x => $x} )
             )->status();
 
             if ($status eq $NK_UNKNOWN)

File nurikabe-solver/Games-Nurikabe-Solver/t/island-surround.t

                 known_cells =>
                 [ 
                     map 
-                    { 
-                        Games::Nurikabe::Solver::Coords->new(
-                            { y => $_->[0], x => $_->[1] }
-                        )
+                    {
+                        $board->_new_coords( {y => $_->[0], x => $_->[1],} )
                     }
                     @$white_cells
                 ],