Hangman Game
Developed a command-line Hangman game in Python using user input handling and game state tracking.
Technologies Used: Python, PyCharm, Git & GitHub
Built a command-line Hangman game in Python that allows users to guess randomly selected words while tracking lives and game progress. This project demonstrates core programming concepts including control flow, state management, and user input handling.
Key Features
Random word selection from a predefined list
Interactive letter-by-letter guessing
Lives tracking with visual hangman stages
Win and loss detection
Prevention of repeated guesses
Modular file structure for maintainability
Architecture
The application is structured using a modular design which improves readability, scalability, and maintainability.
main.py: Core game loop and logic
hangman_words.py: Word list data source
hangman_art.py: ASCII visuals for game stages
Challenges & Solutions
Managing game state across multiple guesses
Handling repeated user input without penalizing the player
Structuring the application into modular components
What I Learned
Strengthened understanding of loops, conditionals, and lists in Python
Practiced debugging and improving user input validation
Learned how to structure a multi-file Python application
Gained experience using Git and GitHub for version control and project publishing
Future Improvements
Add difficulty levels (easy/medium/hard)
Implement score tracking
Add replay functionality
Convert the game into a web application using Flask