This is a simple console-based Hangman game implemented in Python. The game randomly selects a word from a predefined list, and the player attempts to guess the word by suggesting letters or the entire word. The player has a limited number of incorrect guesses before the game ends.
-
The game will randomly select a word, and the display will show the word as a series of underscores representing each letter.
-
The player can guess a letter or the entire word.
-
If the guessed letter is in the word, it will be revealed in the display.
-
If the guessed word is correct, the game will end, and the player wins.
-
The player has a limited number of incorrect guesses, represented by the hangman figure.
-
If the player runs out of guesses, the game ends, and the correct word is revealed.
- Run the script using Python: python hangman_game.py.
- Follow the on-screen instructions to guess letters or words.
- The hangman figure will progress with each incorrect guess.
- Successfully guessing the word within the allowed number of tries results in a win.
- The player can choose to play again after each game.
The hangman figures are displayed progressively for each incorrect guess