I want to make it so when the user enters the wrong one(the one where they die) The prompt user continues
#Adventure Game
prompt = print("You are in a room by yourself. There are three doors; Red, Blue, and Green. Which door are you picking")
user = input("Room?: ")
def red():
print("You enter the red room and die")
def blue():
print("You enter the blue room and freeze")
def green():
print("You enter the green room and proceed")
if user == "r":
red()
print(prompt)
elif user == "b":
blue()
print(prompt)
elif user == "g":
green()
print(prompt)
Aucun commentaire:
Enregistrer un commentaire