A simple command-line Hangman game developed using Python as part of my Python Programming Internship at CodeAlpha.
Hangman is a word-guessing game where the player tries to guess a randomly selected word by entering one letter at a time.
The player has a limited number of attempts. Correct guesses reveal the letters in their correct positions, while incorrect guesses reduce the number of remaining attempts.
- ๐ฒ Random word selection
- ๐ค Letter-by-letter guessing
- ๐ Displays correctly guessed letters
- โค๏ธ Limited number of attempts
- ๐ Win and lose conditions
- ๐ป Simple command-line interface
- Python 3
- Random Module
Make sure Python 3 is installed on your computer.
-
Download or clone this repository.
-
Open the project folder.
-
Open Command Prompt or Terminal in the project folder.
-
Run the following command:
''' bash python hangman.py
-
Enter a letter when prompted and start playing. ๐ฎ
CodeAlpha_Hangman_Game
โโโ hangman.py
โโโ hangman-screenshot.png
โโโ README.md
Through this project, I practiced:
- Python variables
- Lists
- Conditional statements
forandwhileloops- User input
- String manipulation
- The
randommodule - Basic game logic
Python Programming Internship โ CodeAlpha