Generating Word Search Puzzles
weblog.jamisbuck.org
weblog.jamisbuck.org
http://www.math.cornell.edu/~mec/2003-2004/cryptography/subs...
Though this is a simple problem, if you are picky there are actually other considerations... how well do the words intersect (do you prefer more of a sparse tree-like structure, or maximal mesh-like intersection). What is the optimal dimension of a puzzle given the input. How the order of words (random vs. longest word first) affect the quality of the puzzle. etc. I have a half-done word search puzzle app (with a twist) so this piques my interest.
But I like this one nice and clean.
Bit of misdirection for a harder challenge.
I had this idea a while back and made a puzzlegame for Android and iOs that does basically this.
The idea is to create puzzles on ANY subject that contain words relating to that subject.
- let user type, search wikipedia for articles starting with that text
- grab selected article, find out words in it that are links to other articles (they are probably related)
- generate a puzzle
I also do random placement, but I also add a score to the final puzzle, taking into account spread in vertical/horizontal/diagonal words. Then I just create as many random puzzles as I can in 4 seconds and take 'the best'.
More detailed writeup here: http://miscellany.codestare.com/WordsearchPlus/
Finished products: iOS: https://itunes.apple.com/nl/app/word-search-plus-word-puzzle... Android: https://play.google.com/store/apps/details?id=com.codestare....
One missing feature is enforcing a unique solution, which is something you'd generally expect from a word search puzzle.
I basically brute forced it and simply skipped words that I couldn't fit. I'd love to hear ideas from other implementations. At some point I'm going to make the grid size dynamic when I rewrite a better version for the iPad.
Or did I misunderstand something?
So it's clearly been done. Or did I misunderstand something?