Hangman is a classic (if a bit morbid) word game in which you guess a secret word letter by letter. Initially, you know only the number of letters in the word. This version of Hangman is a sample Server Side Javascript application that demonstrates some simple concepts of Server Side Javascript. This sample program focusses on teaching rather than completeness or complexity of the application.
Guess a letter and type it in the text field, then click Enter. If you guess a letter that is in the secret word, the letter will be substituted everywhere it appears in the word. If you guess a letter that is not in the word, another part will be added to the hanged man (head, arms, torso, and head). If you don't type anything, but click Enter, you're guess will be automatically wrong.
If you guess all the letters in the word, you win!
Once all six parts of the hanged man have been drawn, you still have one final guess to get the word. If you miss that, then the trap door drops, the man is hanged, and you lose.
Vowels are usually good guesses. The most common letters in English words are: "ETAOIN SHRDLU". You will usually win if you guess letters in that order, at least in the beginning. Back to the game