ebosetalee / 20-days-challenge

#20dayschallenge on python
6 stars 0 forks source link

9 - Hangman-09 #23

Closed yudori closed 4 years ago

yudori commented 4 years ago

Create a function called display_current_guess that prints out the guessed letters using the following instructions: Lets assume the target word is 'CHICKEN'

User starts the game. display_current_guess function prints: _

Try 1: User guesses 'A' display_current_guess function prints: _

Try 2: User guesses 'K' display_current_guess function prints: K

Try 3: User guesses 'C' display_current_guess function prints: C C K

. . .

If the user guesses all the letters without exceeding the maximum failed attempts, the function prints out the full word. When this happens, in your hangman function, a congratulatory message should be printed out and the program should stop.

Notes: