Skip to content

Commit 408ce23

Browse files
committed
debugging hangman
1 parent 1670655 commit 408ce23

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Menu.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def main():
5151

5252
if currentGame == 'Hangman':
5353
hangmanResponse = HangmanInit(bodyLower)
54-
print(resp.message)
54+
print(hangmanResponse)
5555
if hangmanResponse == "You failed. Try again next time" or hangmanResponse == "Well Done! You beat hangman" or hangmanResponse == "/reset":
5656
currentGame = "Nothing"
5757
hangmanResponse += "\n\nThanks for playing!"

hangman/hangman.py

+3
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ def run_game(letter):
5151
global hearts
5252
if first_time:
5353
return first_run()
54+
elif letter == "/reset":
55+
reset()
56+
return "/reset"
5457
else:
5558
if letter in word:
5659
letters.append(letter)

0 commit comments

Comments
 (0)