(o Generador de sopas de letras)
Currently, this is a simple command-line script which generates a wordsearch grid.
python wordsearch.py <difficulty> [word...]
python wordsearch.py easy duck "polar bear" dog horse rabbit
The grid size, and permissible directions for words, is controlled by the
difficulty setting, which is one of
The output grid is displayed on stdout, and written to a pdf file called with the same name of the first word.
Example of the generated pdf: https://github.com/jjconti/sopa-de-letras/blob/master/output_example.pdf
- Reportlab (https://pypi.python.org/pypi/reportlab)
Improvements from the original version
- Better pdf layout
- Configurable header and footer
- Allow words with spaces (using quotes). Example:
python wordsearch.py hard word1 "word with spaces" word3
- Allow not only ascii input (for example, words with ñ or á é í ó ú are fine)