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

Course Content

Beginner Final Project: Hangman

Beginner Final Project: Hangman

1. Game Word
2. Hints
3. Main Body

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.

Task

  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.

Task

  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.

Switch to desktop for real-world practiceContinue from where you are using one of the options below

Everything was clear?

Section 3. Chapter 2
toggle bottom row

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.

Task

  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.

Task

  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.

Switch to desktop for real-world practiceContinue from where you are using one of the options below

Everything was clear?

Section 3. Chapter 2
toggle bottom row

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.

Task

  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.

Task

  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.

Switch to desktop for real-world practiceContinue from where you are using one of the options below

Everything was clear?

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.

Task

  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.

Switch to desktop for real-world practiceContinue from where you are using one of the options below
Section 3. Chapter 2
Switch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt