diff --git a/Hangman.py b/Hangman.py index 646caf8..13c2507 100644 --- a/Hangman.py +++ b/Hangman.py @@ -37,4 +37,9 @@ if guess in chosen_word[check]: display[check] = guess + for count in range(len(display)): + if count == len(chosen_word): + print("You have won!") + break + print(display)