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

Contenido del Curso

Beginner Final Project: Hangman

Beginner Final Project: Hangman

1. Game Word
2. Hints
3. Main Body

bookMain 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.

Tarea

  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

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 3. Capítulo 1
toggle bottom row

bookMain 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.

Tarea

  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

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 3. Capítulo 1
toggle bottom row

bookMain 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.

Tarea

  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

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

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.

Tarea

  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

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
Sección 3. Capítulo 1
Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
some-alt