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

Conteúdo do Curso

Beginner Final Project: Hangman

Beginner Final Project: Hangman

1. Game Word
2. Hints
3. Main Body

Main Body

We will be able to test hangman() function while testing the final version of the game.

The hangman function implements the body of the program. Here we need to take into account every possible user guess and print user-communicating messages. We will implement this function in 5 steps for the ease of work.

Tarefa

  1. Set condition if the word isn't guessed using is_word_guessed function. 2 arguments: gameword & used_letters.
  2. Print available letters using the get_available_letters function. 1 argument: used_letters.
  3. Set condition if the guess is not a letter.
  4. Set condition if the letter (guess) has been used already using the used_letters variable.
  5. Set condition if the letter is in the gameword.
  6. Set condition if the guesses_remaining is equal or lower than 0.
  7. Print the gameword.

THIS CODE RETURNS AND PRINTS NOTHING! WE WILL TEST IT LATER

Tarefa

  1. Set condition if the word isn't guessed using is_word_guessed function. 2 arguments: gameword & used_letters.
  2. Print available letters using the get_available_letters function. 1 argument: used_letters.
  3. Set condition if the guess is not a letter.
  4. Set condition if the letter (guess) has been used already using the used_letters variable.
  5. Set condition if the letter is in the gameword.
  6. Set condition if the guesses_remaining is equal or lower than 0.
  7. Print the gameword.

THIS CODE RETURNS AND PRINTS NOTHING! WE WILL TEST IT LATER

Mude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo

Tudo estava claro?

Seção 3. Capítulo 1
toggle bottom row

Main Body

We will be able to test hangman() function while testing the final version of the game.

The hangman function implements the body of the program. Here we need to take into account every possible user guess and print user-communicating messages. We will implement this function in 5 steps for the ease of work.

Tarefa

  1. Set condition if the word isn't guessed using is_word_guessed function. 2 arguments: gameword & used_letters.
  2. Print available letters using the get_available_letters function. 1 argument: used_letters.
  3. Set condition if the guess is not a letter.
  4. Set condition if the letter (guess) has been used already using the used_letters variable.
  5. Set condition if the letter is in the gameword.
  6. Set condition if the guesses_remaining is equal or lower than 0.
  7. Print the gameword.

THIS CODE RETURNS AND PRINTS NOTHING! WE WILL TEST IT LATER

Tarefa

  1. Set condition if the word isn't guessed using is_word_guessed function. 2 arguments: gameword & used_letters.
  2. Print available letters using the get_available_letters function. 1 argument: used_letters.
  3. Set condition if the guess is not a letter.
  4. Set condition if the letter (guess) has been used already using the used_letters variable.
  5. Set condition if the letter is in the gameword.
  6. Set condition if the guesses_remaining is equal or lower than 0.
  7. Print the gameword.

THIS CODE RETURNS AND PRINTS NOTHING! WE WILL TEST IT LATER

Mude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo

Tudo estava claro?

Seção 3. Capítulo 1
toggle bottom row

Main Body

We will be able to test hangman() function while testing the final version of the game.

The hangman function implements the body of the program. Here we need to take into account every possible user guess and print user-communicating messages. We will implement this function in 5 steps for the ease of work.

Tarefa

  1. Set condition if the word isn't guessed using is_word_guessed function. 2 arguments: gameword & used_letters.
  2. Print available letters using the get_available_letters function. 1 argument: used_letters.
  3. Set condition if the guess is not a letter.
  4. Set condition if the letter (guess) has been used already using the used_letters variable.
  5. Set condition if the letter is in the gameword.
  6. Set condition if the guesses_remaining is equal or lower than 0.
  7. Print the gameword.

THIS CODE RETURNS AND PRINTS NOTHING! WE WILL TEST IT LATER

Tarefa

  1. Set condition if the word isn't guessed using is_word_guessed function. 2 arguments: gameword & used_letters.
  2. Print available letters using the get_available_letters function. 1 argument: used_letters.
  3. Set condition if the guess is not a letter.
  4. Set condition if the letter (guess) has been used already using the used_letters variable.
  5. Set condition if the letter is in the gameword.
  6. Set condition if the guesses_remaining is equal or lower than 0.
  7. Print the gameword.

THIS CODE RETURNS AND PRINTS NOTHING! WE WILL TEST IT LATER

Mude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo

Tudo estava claro?

We will be able to test hangman() function while testing the final version of the game.

The hangman function implements the body of the program. Here we need to take into account every possible user guess and print user-communicating messages. We will implement this function in 5 steps for the ease of work.

Tarefa

  1. Set condition if the word isn't guessed using is_word_guessed function. 2 arguments: gameword & used_letters.
  2. Print available letters using the get_available_letters function. 1 argument: used_letters.
  3. Set condition if the guess is not a letter.
  4. Set condition if the letter (guess) has been used already using the used_letters variable.
  5. Set condition if the letter is in the gameword.
  6. Set condition if the guesses_remaining is equal or lower than 0.
  7. Print the gameword.

THIS CODE RETURNS AND PRINTS NOTHING! WE WILL TEST IT LATER

Mude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Seção 3. Capítulo 1
Mude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
We're sorry to hear that something went wrong. What happened?
some-alt