1. Shlomi Fish
  2. abc-path

Commits

Shlomi Fish  committed 220b9cf

Convert more.

  • Participants
  • Parent commits 89c8fbd
  • Branches default

Comments (0)

Files changed (1)

File abc-path/Games-ABC_Path-Solver/lib/Games/ABC_Path/Solver/Board.pm

View file
  • Ignore whitespace
 
 sub _get_possible_letters_string
 {
-    my ($self, $x, $y) = @_;
+    my ($self, $xy) = @_;
 
-    return join(',', @{$self->get_possible_letters_for_cell($x,$y)});
+    return join(',', @{$self->get_possible_letters_for_cell($xy->x, $xy->y)});
 }
 
 
         [map { sprintf("X = %d", $_+1) } $self->_x_indexes ],
         map { my $y = $_; 
             [ 
-                map 
-                { $self->_get_possible_letters_string($_, $y) }
+                map
+                { $self->_get_possible_letters_string(Games::ABC_Path::Solver::Coord->new({x => $_, y => $y})) }
                 $self->_x_indexes
             ]
             }