Games::Crosswords - Crosswords Game
use Games::Crosswords; $c = Games::Crosswords->new({TABLE => blah, LEXICON => blah blah}); $c->genpuzzle();
This module helps users create crosswords and print output to a TEX file. Users can convert the TEX ouput to a ps or pdf file.
To illustrate the parameters, it is better to use an example.
TABLE => <<BLAH; @@@@.@ @@@@.@ @@.... @@@@.@ BLAH,
@ is for a block cell, and . for a blank one.
LEXICON => { DOWN => [ [ 0, 4, 'The camel language', 'Perl' ], ], ACROSS => [ [ 2, 2, 'The cool author', 'xern' ], ] }
The first two indicate the y-th row and the x-th column. Both of them count from 0. Then, the hint follows. The last one is the answer which is not necessary unless users invoke gensolution.
Users may redefine the crosswords table.
Users may redefine the lexicon data.
Generates the puzzle. It prints the result to STDOUT unless given the file's name
Generates the solution. It prints the result to STDOUT unless given the file's name
eg/puzzle.pl, eg/solution.pl
xern <xern@cpan.org>
Released under The Artistic License
To install Games::Crosswords, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Games::Crosswords
CPAN shell
perl -MCPAN -e shell install Games::Crosswords
For more information on module installation, please visit the detailed CPAN module installation guide.