Games::Nonogram::BruteForce
use Games::Nonogram::BruteForce; Games::Nonogram::BruteForce->run($grid);
Even the simplest Nonogram may require brute force to solve it. The best known and smallest one looks like below:
1 1 1 _ _ 1 _ _
This module is used internally to try all (but hopefully least) possibilities of the puzzle, after every other means.
takes a puzzle grid and sets possible solutions to the stash of the grid. If this fails, the puzzle is probably broken... or is too large to solve on the memory.
Kenichi Ishigaki, <ishigaki at cpan.org>
Copyright 2007 by Kenichi Ishigaki
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Games::Nonogram, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Games::Nonogram
CPAN shell
perl -MCPAN -e shell install Games::Nonogram
For more information on module installation, please visit the detailed CPAN module installation guide.