A simple text-based Hangman Game built using Python as part of the CodeAlpha Python Programming Internship.
This is a console-based Hangman game where the player guesses a hidden word one letter at a time.
The player has 6 lives. Every incorrect guess decreases one life. The game ends when the player either guesses the complete word or runs out of lives.
- Random word selection
- 6 chances to guess
- Input validation
- Duplicate letter detection
- Win and Lose conditions
- Displays guessed letters
- Clean console interface
- Python 3
CodeAlpha_Project_01_Hangman/
โ
โโโ main.py
โโโ README.md
โโโ Screenshots/
- Install Python.
- Download this repository.
- Open the project folder.
- Run:
python main.pyScreenshots of the project are available inside the Screenshots folder.
Dua Sajjad
BS Computer Science Student
Python Programming Intern at CodeAlphas