Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Already Used | Main Body
Beginner Final Project: Hangman

Swipe to show menu

book
Already Used

What if the user is trying to use the letter that has been already used? We need to 'punish' the user by decreasing warnings_remaining(or guesses_remaining if there are no warnings left). We are saving all letters that have been used into the used_letters variable.

**Scroll down to see the full code!

Task

Swipe to start coding

  1. Decrease the warnings_remaining.
  2. Set condition if the warnings_remaining is lower than 0.
  3. Decrease the guesses_remaining.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 3. ChapterΒ 3
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

close

Awesome!

Completion rate improved to 7.69

book
Already Used

What if the user is trying to use the letter that has been already used? We need to 'punish' the user by decreasing warnings_remaining(or guesses_remaining if there are no warnings left). We are saving all letters that have been used into the used_letters variable.

**Scroll down to see the full code!

Task

Swipe to start coding

  1. Decrease the warnings_remaining.
  2. Set condition if the warnings_remaining is lower than 0.
  3. Decrease the guesses_remaining.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

close

Awesome!

Completion rate improved to 7.69

Swipe to show menu

some-alt