Games-LMSolve
view release on metacpan or search on metacpan
lib/Games/LMSolve/Base.pm view on Meta::CPAN
This function returns the user-readable stringified represtantion of a
move.
=head1 API
=head2 $self->solve_board($file_spec, %args)
Solves the board specification specified in $file_spec. %args specifies
optional arguments. Currently there is one: 'max_iters' that specifies the
maximal iterations to run.
Returns whatever run_scan returns.
=head2 $self->run_scan(%args)
Continues the current scan. %args may contain the 'max_iters' parameter
to specify a maximal iterations limit.
Returns two values. The first is a progress indicator. "solved" means the
puzzle was solved. "unsolved" means that all the states were covered and
the puzzle was proven to be unsolvable. "interrupted" means that the
scan was interrupted in the middle, and could be proved to be either
solvable or unsolvable.
The second argument is the final state and is valid only if the progress
value is "solved".
=head2 $self->get_num_iters()
Retrieves the current number of iterations.
=head2 $self->display_solution($progress_code, $final_state)
If you input this message with the return value of run_scan() you'll get
a nice output of the moves to stdout.
=head2 $self->set_run_time_states_display(\&states_display_callback)
Sets the run time states display callback to \&states_display_callback.
( run in 0.531 second using v1.01-cache-2.11-cpan-71847e10f99 )