Step 3
TirSystem/github-action: Sync GitHub mirror metadata / sync-metadata (push) Successful in 5s

Checking if the player has won
This commit is contained in:
2026-10-04 12:40:15 +08:00
parent 15d5f7134d
commit ce87f23314
6 changed files with 66 additions and 24 deletions
+4 -2
View File
@@ -17,8 +17,8 @@ A beginner-friendly Python program that lets you play Hangman in the terminal ag
Day 7 of Udemy's *100 Days of Code™: The Complete Python Pro Bootcamp*. The game is built in five steps that follow the course:
1. Picking a random word and checking answers
2. Replacing blanks with guesses *(this step)*
3. Checking if the player has won
2. Replacing blanks with guesses
3. Checking if the player has won *(this step)*
4. Keeping track of the player's lives
5. Improving the user experience
@@ -26,6 +26,8 @@ Day 7 of Udemy's *100 Days of Code™: The Complete Python Pro Bootcamp*. The ga
**Step 2:** the word is shown as blanks (`_ _ _ _ _`). After your guess every matching blank is replaced by the letter.
**Step 3:** the game keeps asking for letters until every blank is filled, then prints "You win!". (There are no lives yet, so wrong guesses cost nothing.)
## 📋 Requirements
- Python 3.13 or newer