From eba25642692419f9d1c6d1d949920f08cc656d2b Mon Sep 17 00:00:00 2001 From: pixel-anoel <156136726+pixel-anoel@users.noreply.github.com> Date: Mon, 22 Apr 2024 14:02:06 -0400 Subject: [PATCH] Hints Telling the user hints at the phrase --- hangman.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hangman.py b/hangman.py index 3f14c3d..2dffd42 100644 --- a/hangman.py +++ b/hangman.py @@ -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):