Do you like word games? Today’s game takes a randomly generated word and asks you to make as many words from its letters as you can that are 4 or more characters long and are not the original word … we’re going to call the game “Words Within Words” … and you score a point for each letter used in your list of valid words generated as a result. It uses English words, based on the dictionary arrangements at its (web) server. Maybe it would be a good game to learn English vocabulary.
Programmers often use Linux dictionary files as a means to get a word list, and that list could be in any language, and for ours it is English, so to make it for another language, change the code inside the file_get_contents() call in wordswithinwords.php
This game has two parts to it for PHP and Javascript to respectively get (and assess) a word to use and arrange the user interaction.
Hopefully you can figure the rules when you click the picture above for a live run, but if it is not clear it has similarities to the “Target” word game of the Sydney Morning Herald.
Thank you to The Free Dictionary for its great online presence as a dictionary resource, for the functionality to optionally explain a word’s dictionary meaning. The image map “click parts of the picture” vocabulary ESL tutorials at this blog use the same resource to explain dictionary information about clicked on “things”.
Anyway, see how you go with this game of logic and tactics!
Here is a link to some downloadable PHP (with Javascript) programming code you could rename to wordswithinwords.php
If this was interesting you may be interested in this too.