This commit is contained in:
Tucker 2024-03-11 20:11:19 -04:00
parent 16d875d3e3
commit 69c5c8cb40

View File

@ -1,7 +1,10 @@
print("You are walking down a road. There is a fork in the road one path leads to the entrance of a cave. the other leads to the enterance of a forest.") print("You are walking down a road. There is a fork in the road one path leads to the entrance of a cave. the other leads to the enterance of a forest.")
path = input("Which way do you go? (cave/forest)") path = input("Which way do you go? (cave/forest)")
while path != "cave" or path != "forest": while not (path == "cave" or path == "forest"):
if path == "forest": path = input("Which way do you go? (cave/forest)")
if path == "forest":
print("You decide to got to the forest enterance") print("You decide to got to the forest enterance")
forest_chioce = input("You enter the forest and see a cub. What do you do (run/investigate)") forest_chioce = input("You enter the forest and see a cub. What do you do (run/investigate)")
if forest_chioce == "run": if forest_chioce == "run":
@ -18,7 +21,7 @@ while path != "cave" or path != "forest":
exit() exit()
else: else:
print("sorry I do not accept that option.") print("sorry I do not accept that option.")
elif path == "cave": elif path == "cave":
print("You decide to enter the cave") print("You decide to enter the cave")
cave_path = input("there are two tunnels left and right wich way do you go? (left/right)") cave_path = input("there are two tunnels left and right wich way do you go? (left/right)")
if cave_path == "left": if cave_path == "left":
@ -38,10 +41,10 @@ while path != "cave" or path != "forest":
if cave_choice2 == "Sneak out": if cave_choice2 == "Sneak out":
print("You try to sneak out, but you trip over a stone! The wolves then wake up and devour you. THE END") print("You try to sneak out, but you trip over a stone! The wolves then wake up and devour you. THE END")
exit() exit()
elif cave_choice2 != "Play dead": elif cave_choice2 == "Play dead":
print("You play dead and when the wolves wake up they don't notice you allowing you to exscape and return home to safety. THE END") print("You play dead and when the wolves wake up they don't notice you allowing you to exscape and return home to safety. THE END")
exit() exit()
else: else:
print("Sorry that is not an option.") print("Sorry that is not an option.")
else: else:
print("Sorry, but that is not a given option.") print("Sorry, but that is not a given option.")