Skip to content

Commit

Permalink
Hints
Browse files Browse the repository at this point in the history
Telling the user hints at the phrase
  • Loading branch information
pixel-anoel committed Apr 22, 2024
1 parent 0fb8e73 commit eba2564
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hangman.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
print("You have 6 incorrect guesses before the man is fully hung.")
print("Good luck!\n")

# Define a list of hints corresponding to each word in the word list
return hints.get(word, "No hint available for this word.")
# Setup buttons
increase = round(winWidth / 13)
for i in range(26):
Expand Down

0 comments on commit eba2564

Please sign in to comment.