wordpuzzle.pl - Script using WordFind.pm to generate puzzles
wordfind.pl [-lwsi] [-o outfile] [-c columns] wordlist wordfind.pl [-dsi] [-c columns] wordlist >outfile
This script uses the WordFind.pm module to create simple puzzles by embedding each word (forwards, backwards, up, down, or diagonally) from the wordlist into a lattice of random letters.
This option takes an integer for the size of the puzzle. The default is a 10x10 lattice, using -c 12 would create a 12x12 puzzle. If you enter words longer than <columns>, a warning is issued from WordFind.pm and the word is dropped from the list.
Takes a string as the name of an output file. If in latex mode and no .tex extension is given, one is silently added.
Latex mode: return a puzzle in latex tabular format. The puzzle generated has \huge letters for easier viewing for kids.
\huge
This puts a complete latex wrapper around the latex puzzle so that the result is directly compilable by latex.
DVI mode: implies -l and -w. Automatically runs latex on the output file to produce a .dvi file, and removes the output file and other intermediary files. If no output file is specified, a default puzzle.tex is used and the resulting dvi file will be puzzle.dvi.
By default, the solution matrix is not returned. Using this option, the returned puzzle will include the solution matrix. In latex mode, the solution will come after a latex \newpage command and be set in its own tabular environment.
\newpage
By default, no two words can intersect (share letters) in the puzzle. If -i is used, intersecting words will be allowed in the puzzle (but not guaranteed of course).
Andrew L Johnson <ajohnson@gpu.srv.ualberta.ca>
Please also refer to the embedded documentation in the WordFind.pm module.
1 POD Error
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
To install Games::WordFind, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Games::WordFind
CPAN shell
perl -MCPAN -e shell install Games::WordFind
For more information on module installation, please visit the detailed CPAN module installation guide.