#Game created by Anna Hernandez and Yardley Gutierrez #If you find any bugs please email [insert email here] #This game is distributed for free and is an original creation by Anna Hernandez and Yardley Gutierrez #Modify at your leisure but please do not steal credit #Enjoy import sys import time import random print("You will be prompted when to respond. Please use Enter and Return to continue the story.") def playAgain(): print("Would you like to play again?") ans="" while ans != "yes" and ans != "no": print("[yes][no]") ans = input() if ans == "yes": begin() if ans == "no": print("Thank you for playing") input() sys.exit() def enterCottage(): print(“No one answers.”) input() print(“A surge of panic rushes through you until, finally, someone opens the door.”) input() print(“Standing before you is a decrepit old man. He looks mildly irate.”) input() print(“You wonder if he would be willing to help you at all.”) input() def runRoute(): print("You keep running until you reach the edge of a cliff.") input() print("You peer over at the wonderful land that exists on planet KOI-1689") input() print("It is a vast land that contains many waterfalls and forests left untouched by man") input() print("The very beauty of this land evokes awe and wonder in you.") input() print("Am I from this place?") input() print("This planet was discovered before intergalactic travel since it has" + "\"KOI\"" + "and is followed by numbers") input() print("However, you have little time to enjoy it before you come to the realization that the witches must have certainly noticed your absence by this point.") input() print("You must find a place to hide") input() print("You head into the forest, unsure of what lies ahead.") input() print(“There is an ominous feeling trailing behind you. You run faster.”) input() print(“Finally, you see a small cottage partially shrouded by some trees.”) input() print(“What do you do?”) cottage=”” while cottage != “knock” and cottage != “leave”: print(“Knock on the door of the cottage.”) print(“Leave the cottage and keep running.”) print(“[knock][leave]”) cottage=input() if cottage == “knock”: print(“You frantically knock on the door of the cottage, in the hopes that there will be someone inside to help you.”) input() enterCottage() def begin(): print("\n") print("\"Awake, human! What is thy name?\"") global myName myName = input("Enter your name:") print('"' + myName + ‘, rise! What dost thou seek in this land?" ') input() print("You open your eyes to find yourself before a coven of witches") input() print("\"Where am I?\"" + " you ask.") input() print("The witches turn their piercing gray eyes on you." + "\"Art thou daft?\"") input() print("\"Thou art on planet KOI-1689.\"") input() print("\"We shall repeat it once more, mortal. What dost thou seek in this land?\"") input() print("You blink in confusion. This must be a dream. You roughly pinch your arm.") print("The pain makes you cringe") input() print("It's not a dream, you realize.") print(“Saying the wrong thing might lead to your imminent death.”) input() print("'I better think of something quickly, or they might just kill me.'") input() print("So, " + myName + " ,what will you do?") input() print("Will you flee from the witches?") print("Will you engage the witches in combat?") print("Will you answer their question honestly?") print("Will you remain silent?") choice="" while choice != "flee" and choice != "silence" and choice != "answer" and choice != "fight" and choice != "gun": print("[flee][silence][answer][fight]") #gun is a hidden option choice = input() if choice == "flee": print("Finding no better option, you run away briskly.") input() print("You take one last look back. It appears they did not see you.") input() print(“You take note of it. This information could prove useful in the future. runRoute() if choice == "silence": print("The witches slowly close in on you.") input() print('"' + myName + "\", respond or suffer the loss of thy life..\"") input() print("Paralyzed with fear, you continue to remain silent") input() print("Your eyes widen in horror as one of the witches pulls out a blade.") print(“She thrusts it into your chest and proceeds to tear out your heart.”) print(“The excruciating pain makes you black out. You die, robbed of your vision and your heart, in a pool of your own blood.”) input() print("You died") input("Game Over") playAgain() if choice == "answer": input() ansRoute() if choice == "fight": print("You catch sight of an iron staff on the ground across from you.") input() print("As covertly as possible, you grab the blunt object and prepare to battle the witches.") input() print("One of the witches pulls out a stiletto blade") input() print("You swing out at her with your found weapon and knock it out of her hand.") print(“She bends over to pick it up and you hit the back of her head with enough force to effectively knock her out. input() print("Despite their wizened appearances, they pose a dangerous threat.") input() fightRoute() if choice == "gun": print("You feel your pockets, hoping there might be something there to help you.") input() print(“Your hand brushes against something hard and cold.”) print(“It feels like a gun.”) input() print(“It is a gun.”) input() print("You notice it has no ammunition") input() gunToss() begin()
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