Course Content
Hangman Game Project
Hangman Game Project
Case 2
What if the user is trying to use the letter already used?
We need to punish the user by decreasing warnings_remaining
(or guesses_remaining
if no warnings are left). We are saving all letters used into the used_letters
variable.
Task
- Decrease the
warnings_remaining
. - Set condition if the
warnings_remaining
is lower than 0. - Decrease the
guesses_remaining
.
Everything was clear?
Section 1. Chapter 10
Start learning today and achieve
coding mastery
- Master Python, SQL, JavaScript & more.
- Learn with Step-by-Step Lessons.
- Get Ready for Real-World Projects.
- Earn a Certificate Upon Completion.