Tuesday, November 27, 2012

Hangman Game (Guess the Word) in C#

This word guessing game is very similar to popular word guessing game: HANGMAN
(Only difference is that here computer is not drawing "Hangman" picture on every wrong guess by the guessing player... May be in next version, I might include that diagram...)

This game is developed as a Windows Application in C#. Feel free to download the game... and  source code of this game.


Screen Shots:


This game is generally played by two persons. One player has to guess a word which is given by another player. Here you have to play this game with Computer. In order to win this game, Guessing player has to guess the word correctly. In the guessing, player can not make more then five wrong guesses.
If he suggests more than five wrong letters, he loses the game.
Initially, the word to guess is represented by a row of dashes, giving the number of letters.
If the guessing player suggests a letter which occurs in the word, the other player (in this case Computer) writes it in all its correct positions.
If the suggested letter does not occur in the word, guessing player loses his guessing attempt.
The game is over when:
  • The guessing player completes the word, or guesses the whole word correctly 
  • The guessing player makes more than five wrong guesses and unable to guess the word correctl

1 comment: