We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1670655 commit 408ce23Copy full SHA for 408ce23
Menu.py
@@ -51,7 +51,7 @@ def main():
51
52
if currentGame == 'Hangman':
53
hangmanResponse = HangmanInit(bodyLower)
54
- print(resp.message)
+ print(hangmanResponse)
55
if hangmanResponse == "You failed. Try again next time" or hangmanResponse == "Well Done! You beat hangman" or hangmanResponse == "/reset":
56
currentGame = "Nothing"
57
hangmanResponse += "\n\nThanks for playing!"
hangman/hangman.py
@@ -51,6 +51,9 @@ def run_game(letter):
global hearts
if first_time:
return first_run()
+ elif letter == "/reset":
+ reset()
+ return "/reset"
else:
58
if letter in word:
59
letters.append(letter)
0 commit comments