wsearch

This repository can be cloned via wget:

wget -rnp -nd -Ratom.xml -erobots=off 404.hjk.pw/s/wsearch/

wsearch generates a grid of letters with hidden words. The words are written either left to right, or top to bottom. All grid cells which are not occupied by words are randomized.

The user can chose the width and height of the grid, as well as a text file with a list of possible words. The text file must have one word per line, words with letters other than A-Z are filtered out.

Usage:

./wsearch.py <width> <height> <dictionary>

For example:

> ./wsearch.py 20 10 /usr/share/dict/american-english
ZRQPLUSIZKNIMAMNBWHC
RAKXDISTILLEDRIFMIKL
ETHOAGIETNROSETTEFHX
PIPAPERBOYFSHAULAIAV
AOLGTYJTMWATHRIFTSSI
IQAGIAMATMWMEDDLERVS
NUVIPMOXMANGLEWORMDP
TIAESACEAIWOOLLIESTJ
OLAAYIVDLUSTSKMOMSOZ
REFLECTSRTWJOBARCJII

Files