Thursday, 24 July 2014

Guess the word! - HANGMAN - Python

This python program is a solution to Tim Wilson's python practice problems - Hangman(see here).
The program picks a random word itself.It creates dashes for the user to guess the word. Then it asks the user to input an alphabet.

Then it checks that if the input is valid and present in the word to be guessed. If the input is valid and present in the word then it replaces the dashes of that alphabet with the alphabet.

It keeps on asking for input until the word is completely guessed or the number of turns given to the user becomes zero. The number of turns given to the users is the length of the word(to be guessed) plus one.

After completion of one game, It asks the user if he/she wants to play again. Then it performs the action according to user's input.

Download it here: Datafilehost


Keep visiting.
E-Mail me: Here








** UPDATE **

Number of turns now do not decrease on right guesses.

Download Update: Datafilehost

No comments:

Post a Comment