DEV Community

Junaid De Villiers
Junaid De Villiers

Posted on

Hangman Game - Python

Hangman Game – Python

  1. A word is preassigned for the user to guess within a set amount of tries

  2. The word is displayed as a series of dashes

  3. The user guesses letter by letter.

  4. If the users letter is within the word, the word is printed with the users letter is the correct position

  5. If the user guesses the word before the guesses run out a congratulatory message is displayed

  6. If the user fails and runs out of guesses game over is displayed and the game ends

Top comments (0)