Checking if the player has won
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user