Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Challenge: Mystery Word Puzzleby jdporter (Paladin) |
on Jan 12, 2005 at 19:57 UTC ( [id://421737]=note: print w/replies, xml ) | Need Help?? |
So, assuming you've written a sub letters_in_common for the purpose of generating a puzzle, then a solution would be:
The only hitch is making sure that the DICT contains all the possible legal words. E.g. your typical /usr/dict/words isn't likely to have "seams" in it, so you'd have to generate it.
In Section
Seekers of Perl Wisdom
|
|