Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions Hangman.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,17 @@
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)

counter = []

for count in display:
if count in chosen_word:
counter += count

if counter == display:
print("You Won!")
break

# print(counter)
# print("You Won")