A simple Hangman game implemented in Python.
Hangman is a classic word-guessing game where the player tries to guess a word by suggesting letters within a certain number of attempts. This project provides a basic implementation of the game with a focus on guessing U.S. states.
- Random selection of U.S. states as words to guess.
- Limited number of attempts.
- Basic ASCII art for visualization.
- Python 3.x
-
Clone the repository:
git clone https://github.com/iNoles/Hangman.git
-
Navigate to the project directory:
cd Hangman
-
Run the game:
python hangman.py
-
Follow the on-screen instructions to play the game.
-
The game will randomly select a U.S. state name as the word to guess.
-
You have a limited number of attempts to guess the letters in the word.
-
Guess one letter at a time. If the letter is in the word, it will be revealed. If not, you will lose one attempt.
-
Continue guessing letters until you think the entire word or run out of attempts.
-
If you guess the word within the given attempts, you win! Otherwise, you lose the game.
Contributions are welcome! Feel free to open a pull request if you'd like to improve the game or fix any issues.