Hangman in JavaScript
- by Akshay Luther
Status Window
How to PLAY? | Author's Note
How To Play
This is a 'web-adapted' version of the popular game Hangman.
- It is a two player game only.
- The object of the game is to guess your opponent's word.
- Player 1 types in a word and Player 2 has to guess.
- After the word is typed in by Player 1, it is Player 2's turn and s/he has to guess a letter.
This is done by typing a letter and then clicking anywhere outside the text-field.
- If the letter guessed by Player 2 is in the word, all instances show up.
If not, Player 2 loses a try.
- Player 2 keeps guessing until s/he finds the word in which case s/he wins, or s/he runs out of tries in which case Player 1 wins.
- Click Refresh on your browser to start a new game.
- C'est ca! Have fun!
Please e-mail any suggestions or comments.
Author's Note
This is my first attempt at programming in JavaScript and made this program just to get a feel of the language.
Therefore please do not treat it as exemplary programming code or anything of the sort. If however you are curious
about the code you can click [View] followed by [Source] on your browser.
You can use this program on your page provided
- You inform me by e-mail.
- You do not make any changes to the file.
Please e-mail any suggestions or comments.
Copyright © 1997, Akshay Luther
Email: akshay@earthling.net