Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions adventure.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name = input("Enter your name: ")
print(f"Welcome {name} to this adventure!")

answer = input(
"You are on dirt road it has come to an end and you can go left or right.which way you would like to go? ").lower()

# """
# The results you will face when you decide to take left.
# """

if answer == "left":
answer = input("You come to a river, you can walk around it or swim across? Type to walk around and swim to swim across: ").lower()
if answer == "swim":
print("You swam and got eaten by an alligator.")
elif answer == "walk":
print("You walked for many miles and ran out of water ultmately made you lose.")
else:
print("Not a valid option.")

# """
# The results you will face when you decide to take left.
# """

elif answer == "right":
answer = input("You came across the bridge it looks so old and dangerous to cross, if you wanna cross it say cross or for head back say head back: ").lower()
if answer == "cross":
print("You succesfully crossed the bridge.")
elif answer == "head back":
print("You lost the road and got lost. this lead to your end.")
else:
print("Not a valid option.")


else:
print("Not a valid option.")
Loading