Commits

Anonymous committed 8833d5d

Convert the GUI to the _solve_using dispatcher.

  • Participants
  • Parent commits 312e4c9

Comments (0)

Files changed (1)

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

     my $self = shift;
     my $move = shift;
 
-    my $method = "_solve_using_$move";
-
-    $self->{board}->$method();
+    my $moves = $self->{board}->_solve_using({ name => $move, });
 
     $self->OnPaint();