From 7f79d675f6ac8383d52c645adb8495a2ed49242b Mon Sep 17 00:00:00 2001 From: Nick Walton Date: Thu, 28 Nov 2019 12:42:27 -0700 Subject: [PATCH] Update play.py --- play.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/play.py b/play.py index 75dc75e..171b750 100644 --- a/play.py +++ b/play.py @@ -135,8 +135,11 @@ def play_aidungeon_2(): console_print(result + "\n CONGRATS YOU WIN") break elif player_died(result): - console_print(result) - console_print("YOU DIED. GAME OVER") + console_print(result): + died = input("Did you die? (y/N)") + if died.lower() in ["yes", "y"] + console_print("YOU DIED. GAME OVER") + break break else: console_print(result)