my ($h, $w, @lines) = Games::Nonogram::Loader::File->load( $file );
This is used internally to load puzzle data from a file.
- loader ignores lines which start with #
- loader reads row clues first: a set of row clues per a line, and the row clues should be comma-separated.
- loader regards the first blank line as the end of the row clues.
- loader reads column clues, then, in the same manner.
- loader regards end-of-file or the second blank line as the end of the column clues.
In short, a file like below
# row clues
# column clues
would produce a puzzle like below.
takes a filename as an argument and reads its data.
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.