""" ๐ฎ Hangman Game (Python Console)
This is a simple terminal-based Hangman game built with Python. The player must guess a hidden word by entering letters one at a time. The game allows a maximum of 6 incorrect guesses.
๐ Features:
- Random word selection from a predefined list
- Displays correct guesses and tracks progress
- Limits user to 6 wrong attempts
- Input validation (only single letters allowed)
- Friendly text-based interface
- Install Python (if not already installed).
- Save the game code in a file named
hangman.py. - Open a terminal or command prompt.
- Run the script using: python hangman.py
๐ผ๏ธ Sample Output:
๐ฎ Welcome to Hangman Game!
Guess a letter: a โ Good guess! _ a _ _ _
Guess a letter: z โ Wrong guess! Attempts left: 5 _ a _ _ _
๐ File Structure:
hangman-game/ โโโ hangman.py # Game code โโโ README.md # Project guide (optional)
๐ License: This project is licensed under the MIT License. You are free to use, modify, and distribute it.
๐ Author: Your Name : G.Ruthwika