Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Is not a Letter | Main Body
Beginner Final Project: Hangman
course content

Contenu du cours

Beginner Final Project: Hangman

Beginner Final Project: Hangman

1. Game Word
2. Hints
3. Main Body

book
Is not a Letter

What if the user input & or @? We need to 'punish' the user by decreasing number of warnings (or guesses if there are no warnings left). Only one symbol ! means that the user is asking for the hint. We need to take into account these cases.

Tâche

Swipe to start coding

  1. Set condition if the input is '!'.
  2. Print possible matches using the show_possible_matches function and the get_guessed_word(gameword, used_letters) as an argument.
  3. Decrease the warnings_remaining by one.
  4. Set condition if there are less than 0 (not included) warnings.
  5. Decrease the guesses_reamaining by one.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 3. Chapitre 2
toggle bottom row

book
Is not a Letter

What if the user input & or @? We need to 'punish' the user by decreasing number of warnings (or guesses if there are no warnings left). Only one symbol ! means that the user is asking for the hint. We need to take into account these cases.

Tâche

Swipe to start coding

  1. Set condition if the input is '!'.
  2. Print possible matches using the show_possible_matches function and the get_guessed_word(gameword, used_letters) as an argument.
  3. Decrease the warnings_remaining by one.
  4. Set condition if there are less than 0 (not included) warnings.
  5. Decrease the guesses_reamaining by one.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 3. Chapitre 2
Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Nous sommes désolés de vous informer que quelque chose s'est mal passé. Qu'est-il arrivé ?
some-alt