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

Scorri per mostrare il 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!

Compito

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.

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 3. Capitolo 3
Siamo spiacenti che qualcosa sia andato storto. Cosa è successo?

Chieda ad AI

expand
ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

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!

Compito

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.

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 3. Capitolo 3
Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Siamo spiacenti che qualcosa sia andato storto. Cosa è successo?
some-alt