This is a classic text-based Hangman game developed as part of the "100 Days of Code: Python Bootcamp" by Angela Yu.
The player must guess the hidden word letter by letter before the hangman is completed!
Hangman is a word-guessing game where the player tries to guess a secret word one letter at a time.
With each incorrect guess, a part of the hangman is drawn. The player loses if the full drawing is completed before the word is guessed.
This project helped reinforce concepts like loops, conditionals, string manipulation, lists, and importing modules in Python.
- Python 3
- Random word selection from a word list
- Letter-by-letter guessing
- Visual hangman stages using ASCII art
- Game over and win conditions
- Modular code with separate files (
hangman_words.py,hangman_art.py,main.py)
- Make sure you have Python 3 installed.
- Clone or download this repository.
- Ensure the following files are in the same folder:
main.pyhangman_words.pyhangman_art.py
- Open a terminal, navigate to the folder, and run:
python main.pyThrough this project, I practiced:
-
Using loops and conditional logic
-
Importing functions and data from other Python files
-
Manipulating lists and strings
-
Handling user input and game flow
This is an educational project developed as part of Angela Yu's "100 Days of Code" Python Bootcamp. Not for commercial use.