Games::Nonogram - solve and analyze Nonogram


Games-Nonogram documentation Contained in the Games-Nonogram distribution.

Index


Code Index:

NAME

Top

Games::Nonogram - solve and analyze Nonogram

SYNOPSIS

Top

    use Games::Nonogram;
    Games::Nonogram->bootstrap;

DESCRIPTION

Top

This is a simple utility to solve a puzzle called 'Nonogram' (i.e. 'Paint by numbers', 'Griddlers' or whatever). See http://en.wikipedia.org/wiki/Nonogram for details of the puzzle.

METHOD

Top

bootstrap

bootstraps command line solver or solver shell, according to the value(s) of @ARGV. See appropriate pods for details.

SEE ALSO

Top

Games::Nonogram::CommandLine, Games::Nonogram::Shell

AUTHOR

Top

Kenichi Ishigaki, <ishigaki at cpan.org>

COPYRIGHT AND LICENSE

Top


Games-Nonogram documentation Contained in the Games-Nonogram distribution.

package Games::Nonogram;

use strict;
use warnings;

our $VERSION = '0.01';

sub bootstrap {
  my $class = shift;

  my $target = @ARGV ? 'CommandLine' : 'Shell';
  my $package = "Games::Nonogram::$target";
  eval qq{ require $package };
  die $@ if $@;
  $package->bootstrap;
}

1;

__END__