Adventure Game 6A 21 A
TobechukwuUreh (1)

#Setup
yes_no =["yes","no"]
directions = ["left","right""forward""backward"]

#Introduction
name = input("What is your name adventurer?\n")
print("Greetings, " + name +",Let us go on a quest!")
print("You find yourself on the end of a dark forest.")
print("Can you find your way through?\n")

Start of the game

response =""

while response not in yes_no:
response = input("Would you like to step into the forest?\nyes/no\n")
if response == "yes":
print ("You head into the forest. you hear crows cawwing in the distance. \n")
elif response =="no":
print("You are not ready for this quest .Goodbye" + name + ".")
quit()
else:
print("I didn't understand that.\n")

#Next part of the game
response =""
while response not in directions:
print("To your left you see a bear")
print("To your right you see ore forest")
print(" There is a rock wall infront of you")
print("Behind you is a forest exit.\n ")
response = input ("What direction do you go \nleft/right/forward/backward\n")

if response == "left":
print("The bear eats you. Farewell")
quit()
if response == "right":
print("You walk into the forest and eventually find an exit, Congrats you beat the game.")
quit()
if response == "forward":
print("You walk into the wall and hit your head really hard. You pass out and fall into a really deep coma and sleep for 20 years. Goodbye")
quit()
if response == "backward":
print("You walk out into the forest and go back home. Goodbye")
quit()

You are viewing a single comment. View All
TheForArkLD (206)

Hey, please put this on code start and code end in this post

~~~