Hangman Game in Python
In this project, you will create a hangman game using pure Python, without external libraries. The game will run entirely in the terminal, challenging the player to guess a hidden word letter by letter before running out of attempts.
The game words will be stored in a text file, ensuring that the word list can be easily expanded or modified. The objective is to practice string manipulation, input/output handling, file reading, and flow control in Python.
The main features of the game include:
- Random word selection: The game randomly selects a word from the available word file.
- Limited attempts: The player has a maximum number of attempts to guess the word before losing.
- Progress display: The game shows the partially revealed word, replacing unguessed letters with
_
. - Tracking guessed letters: The game displays already chosen letters to prevent repetition.
For example, when starting a game, it displays something like:
Welcome to the Hangman Game!
Word: _ _ _ _ _
Remaining attempts: 6
Guessed letters: None