import random def combat(): R=random.randint(1,6) return R def decision(): choice=str(input("Enter your choice: ")) return choice print("ASCII ART LOL") print("==========================================================") print("you are in a clearing, and see a cave off in the distance. The cave stretches off into the mist far above. You see shapes moving off in the far left,What do you do?") print("==========================================================") print(" 1. Walk Toward the cave") print(" 2. Walk toward the shapes") print(" 3.Walk out of the cave") choice1=decision() #decison 1 if choice1 == "1": print("You walk toward the cave, and see its masssive opening. Animalistic sounds come from its maw.") print("1. Enter the Cave") print("2. Leave the Cave") decision() if choice1 =="1": print("You enter the Cave, in the fog you see two tunnels in the rear") print("1. Left") print("2. Right") decision() if choice1 =="1": print("The Left tunnel walls glint with the light of precious gems") print("1. Continue") print("2. Go Back") decision() if choice1 =="1": print("You continue down the tunnel, seeing a bright light at the end (so cliche ikr)") print("1. Continue to the end of the tunnel") print("2. decison() if choice1 =="1": print("you reach the end of the tunnel, and are on the other side of the mountain") if choice1 == "2": print("you return to the back of the cave") elif choice1 =="2": print("The Right Tunnel is slimy, and small creatures slither on its surface") print("The tunnel grade turns down, youd dont know how deep you are. A Space Centipide drops from the celing") print("1. Fight the centipide") print("2. Run") decision() if choice1 =="1": combat() if R <5: print("The Centipede killed you") else: print("You killed the Centipede") if choice1== "2": print("1The shapes reveal themselves to be common Sky Buffallo") print("2.Fight the buffalo") decison() if choice1 == "1": print(" The buffallo float above you serenely. They seem to not notice you") if choice1 == "2": #2st decision print("The opening of the cave is at the end of a long valley") print(" 1. Go down the valley") print(" 2. Enter the Trees") decision()#decision 3 if choice1 =="1": print("You continue down the valley. Nothing of interest is here.") print("1. Return to the Valley") print("2.Continue") decision() if choice1 == "2": print("there continues to not be much of anything to interest you")
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question