Do you like word games? Today’s game is well known to lots of people … Hangman. 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 hangman.php
This game has two parts to it for PHP and Javascript to respectively get a word to use and arrange the user interaction.
PHP and Javascript are like Fred and Ginger and HTML is like Edward Everett Horton … really just wanted to show you this.
Hopefully you can figure the rules when you click the picture above for a live run, or know that you’ll get hurt unless you guess the unknown word fast enough. And it won’t just be your feelings!
Thank you to The Free Dictionary for its great online presence as a dictionary resource, for the functionality to explain an unknown word, for its 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 hangman.php
If this was interesting you may be interested in this too.