I’ve been interested in writing a wordsearch puzzle generator for a while, but never managed to get around to it. However, my wife was recently complaining that it was hard to find tools for generating these puzzles online for her classes that weren’t riddled with irritating popup ads, so I thought it would be interesting to bash something together.
The completed puzzle generator can be found at https://danielphil.github.io/wordsearch/. The tool can generate a puzzle based on a user-provided word list and difficulty can be adjusted by changing the grid size and supported directions for words. The solution (without random characters) can be viewed for any generated puzzle and the UI is hidden when printing, making it easy to generate puzzle handouts.
I wanted to bash the frontend together quickly to get the project released, so I went with the most basic approach of a single HTML page with some inline JS for calling the wordsearch library. Yet again, Bootstrap comes in handy for making programmer developed websites look a bit more polished. Bootstrap’s handy
d-print-none class made it super easy to set up the print layout to stop the form elements from being shown when the page was printed.
Source code and more information can be found on the project GitHub page.