#Text based game def die(): print "You Die!" print "(1) Exit! (2) Restart!" o1 = (raw_input('>>')) if o1 =="1": quit() if o1=="2": start() def congrats1(): print "\n\n\n\n\n\n\n\n" print "Congratulations!!!!!!" print "You got here!!!!!!" print "You get here every completed accomplishment!" print "I will tell you a hint every time you come here!" print "HINT #1: SATAN WILL COME BACK! BE PREPARED WHEN HE DOES!" print "(1) Exit! (2) Continue!" o1 = (raw_input('>>')) if o1 =="1": quit() if o1=="2": print "'I am done! This is too powerful! I am quitting!' You say." print "'NO MASTER!!!' They say." print "'I command you all to SHUT UP!!!!' You say." print "They start to pull at your feet!\n\n" print "(1) Command them to 'STOP!'\n" print "(2) Run away!\n" print "(3) Make the best of being powerful!\n" print "(4) KILL THEM ALL!!!!!\n" print "(5) Commit suicide!" o1 = (raw_input('>>')) if o1=="5": print "You commit suicide!" die() if o1=="4": print "You try to kill them all!" print "You fail!" print "You lose your footing!" print "You fall into lava!" die() if o1=="3": print "You make the best of being powerful!" print "The dead guys do not agree!" print "They kill you!" die() if o1 =="1": print "You command them to 'STOP!!!'" print "They do not listen!" print "They drag you into lava!" die() if o1=="2": print "You run away!" print "You manage to get away!\n\n" print "(1) Rest!\n" print "(2) Mark this place! \n" print "(3) Run away!\n" print "(4) Take a dump!\n" print "(5) Take a pee!" o1 = (raw_input('>>')) if o1 =="1": print "You rest!" print "A dead man catches up to you!" print "He kills you!" die() if o1=="3": print "You run away!" print "A friendly hobo catches up to you!" print "He unleashes his true form..." print "A DEAD GUY!" die() if o1=="4": print "You take a dump!" print "You realize that you are constipated..." print "But you REALLY have to go!" print "Out of anger, you commit suicide!" die() if o1=="5": print "You take a pee!" print "And you realize your pee is green!" print "Out of anger, you kill yourself!" die() if o1=="2": print "You put a huge flag here!" print "You put some lava you collected there..." print "So no one can move the flag!\n\n" print "(1) Try to find human civilization!\n" print "(2) " def quit(): import sys sys.exit(0) def start(): import os print "You find yourself in a dark room: do you...\n\n" print "(1)do Nothing, or (2)eat cheese?" o1 = (raw_input('>>')) if o1=="2": import os os.system("cls") print "You eat cheese! But, then, you realize that you are DEADLY allergic to cheese!\n" print "You Die!\n\n" print "(1)Quit!(2)Restart!" o1 = (raw_input('>>')) if o1 =="1": quit() if o1=="2": start() if o1 =="1": import os print "You do nothing! But, then, a poisonous spider comes!\n\n" print "(1)Swat at it, or (2) Run away blindly?" o1 = (raw_input('>>')) if o1 =="1": import os print "You swat at it! But,..." print "It bites you!" print "You Die!\n\n" print "(1) Exit! (2) Restart!" o1 = (raw_input('>>')) if o1 =="1": quit() if o1=="2": start() if o1=="2": import os print "You run away blindly!" print "Now, you find a light switch." print "You switch it on." print "(1) Sit down, or (2) Try to find the exit." o1 = (raw_input('>>')) if o1=="1": import os print "You sit down!" print "But, you do not realize,..." print "There is a needle there!" print "(and a sharp one at that)" print "You Die!\n\n" print "(1) Exit! (2) Restart!" o1 = (raw_input('>>')) if o1 =="1": quit() if o1=="2": start() if o1 =="2": import os print "You try to find the exit!" print "You fail, but you find a door!" print "(1) Ignore it, or (2) Go inside?" o1 = (raw_input('>>')) if o1 =="1": import os print "You ignore da' door!" print "but then,..." print "You realize that you are starving!!!" print "You Die!" print "(1) Exit! (2) Restart!" o1 = (raw_input('>>')) if o1 =="1": quit() if o1=="2": start() if o1=="2": import os print "You go inside da' door!" print "You turn on the light..." print "You find a room with..." print "Three chests!!" print "The first one has a purple hue, and is like a 'goth' chest." print "The second one is very old, has cracks in it, (but not wide enough to look inside)," print "And, the third one is a futuristic chest, with weird, fancy designs." print "(1) Purplish, (2) Old, or (3) Futuristic?" o1 = (raw_input('>>')) if o1 =="1": print "You open the goth chest!" print "You look inside,..." print "And it sucks you in!" print "You Die!" print "(1) Exit! (2) Restart!" o1 = (raw_input('>>')) if o1 =="1": quit() if o1=="2": start() if o1=="3": print "You open the futuristic chest!" print "You see..." print "A hamster!" print "You pick it up, thinking...\n" print "'this can be nice for my son, relying on the thought that I get home\n'" print "You pick it up, and..." print "It bites you!" print "You feel your life running away from you, until" print "You Die!" print "(1) Exit! (2) Restart!" o1 = (raw_input('>>')) if o1 =="1": quit() if o1=="2": start() if o1=="2": print "You open the old chest!" print "You find..." print "A secret hatch with a ladder!" print "(1) Go inside! (2) Run away! (3) Try to text Jane!(Wife)" o1 = (raw_input('>>')) if o1 =="2": print "You run away!" print "But, you fall in some kind of trap!" print "You Die!" print "(1) Exit! (2) Restart!" o1 = (raw_input('>>')) if o1 =="1": quit() if o1=="2": start() if o1=="3": print "You write a text!" print "You click send, and..." print "Your phone explodes!" print "You Die!" print "(1) Exit! (2) Restart!" o1 = (raw_input('>>')) if o1 =="1": quit() if o1=="2": start() if o1 =="1": print "You go inside!" print "You find a lit room, but there are fires a'blazing!" print "(1) Try to swat at the fires! (2) Walk in the fires! (3) Go suicide!" o1 = (raw_input('>>')) if o1 =="1": print "You swat at the fires!" print "But, you burn your hands DEADLY!!!" print "You Die!" print "(1) Exit! (2) Restart!" o1 = (raw_input('>>')) if o1 =="1": quit() if o1=="2": start() if o1=="3": print "You go suicide!" print "You Die!" print "(1) Exit! (2) Restart!" o1 = (raw_input('>>')) if o1 =="1": quit() if o1=="2": start() if o1=="2": print "You walk in the fire!" print "Suprisingly, you do not burn!" print "You walk in and find..." print "A red - hot gate!" print "(1) Touch the gate slightly! (2)Grab the gate! (3)Run away! (4) Do nothing!" o1 = (raw_input('>>')) if o1 =="1": print "You slightly touch the gate!" print "It morphs!" print "Into a giant lava building!" print "You Die!" print "(1) Exit! (2) Restart!" o1 = (raw_input('>>')) if o1 =="1": quit() if o1=="2": start() if o1=="2": print "You grab the gate!" print "It burns your hand!" print "You Die!" print "(1) Exit! (2) Restart!" o1 = raw_input('>>') if o1 =="1": quit() if o1=="2": start() if o1=="3": print "You run away!" print "You trip and fall in a trap!" print "You Die" print "(1) Exit! (2) Restart!" o1 = (raw_input('>>')) if o1 =="1": quit() if o1=="2": start() if o1=="4": print "You do nothing!" print "Then, 2 mins later..." print "The gate opens!" print "(1) Go inside! (2) Go suicide! (3) 'I HATE MY LIFE!!!'" o1 = (raw_input('>>')) if o1=="2": print "You go suicide!" print "You die!" print "(1) Exit! (2) Restart!" o1 = (raw_input('>>')) if o1 =="1": quit() if o1=="2": start() if o1=="3": print "You say 'I HATE MY LIFE!!!'" print "Ooh, that looked like it hurt!" print "You Die!" print "(1) Exit! (2) Restart!" o1 = (raw_input('>>')) if o1 =="1": quit() if o1=="2": start() if o1 =="1": print "You go inside!" print "You find..." print "Hell!..." print "And you see Satan! (The Devil, Lucifier.)" print "(1) Talk to him! (2) Kill him! (3) talk to a dead guy!" o1 = (raw_input('>>')) if o1 =="1": print "You go talk to Satan!" print "You approach..." print "And Satan kills you!" print "You Die!" print "(1) Exit! (2) Restart!" o1 = (raw_input('>>')) if o1 =="1": quit() if o1=="2": start() if o1=="3": print "You go talk to a resident of Hell!" print "You approach..." print "And he kills you!" print "You Die!" print "(1) Exit! (2) Restart!" o1 = (raw_input('>>')) if o1 =="1": quit() if o1=="2": start() if o1=="2": print "You go try to kill Satan!" print "You reach into your pocket,..." print "You see there is a dagger!" print "You take out the dagger,..." print "And..." print "Satan shrieks in horror and withers!" print "(1) Kick his remains!\n" print "(2) Walk away!\n" print "(3) Try to find his wife!\n" print "(4) Talk about his mother!" o1 = (raw_input('>>')) if o1=="2": print "You walk away!" print "But then, a pit of lava opens up below you!" print "You Die!" print "(1) Exit! (2) Restart!" o1 = (raw_input('>>')) if o1 =="1": quit() if o1=="2": start() if o1=="3": print "You try to find his wife! (Satanita.)" print "You realize, 'HE HAS NO WIFE!!!!!!!!!'" print "Out of anger, you commit suicide." print "You Die!" print "(1) Exit! (2) Restart!" o1 = (raw_input('>>')) if o1 =="1": quit() if o1=="2": start() if o1=="4": print "You talk about his mother!" print "His soul comes and kills you!" print "You Die!" print "(1) Exit! (2) Restart!" o1 = (raw_input('>>')) if o1 =="1": quit() if o1=="2": start() if o1 =="1": print "You kick his remains!" print "They scatter into the lava!" print "'He wont be coming back anytime soon.'" print "(1) Explore Hell!\n" print "(2) Bully the dead guys!\n" print "(3) Try to ask for directions!\n" print "(4) Try to become Satan!" o1 = (raw_input('>>')) if o1 =="1": print "You try to explore Hell!" print "But then, a dead guy comes and attacks you!" print "Desperate, you jump into a pit of lava!" print "You Die!" print "(1) Exit! (2) Restart!" o1 = (raw_input('>>')) if o1 =="1": quit() if o1=="2": start() if o1=="2": print "You try to bully the dead guys!" print "You bully a few, until 4 of them gang up on you!" print "You Die!" print "(1) Exit! (2) Restart!" o1 = (raw_input('>>')) if o1 =="1": quit() if o1=="2": start() if o1=="3": print "You ask a dead guy directions!" print "Sadly, he just dissappears!" print "Out of anger, You jump into a LavaLake!" print "You Die!" print "(1) Exit! (2) Restart!" o1 = (raw_input('>>')) if o1 =="1": quit() if o1=="2": start() if o1=="4": print "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n" print "You announce that you are the new Satan!" print "Suprisingly, everyone bowed and agreed!" print "'You killed Satan, so you shall become Satan!', they say." print "*ACCOMPLISHMENT 1 COMPLETE!*" print "*'BECOME SATAN!'*" print "" print "Press '1' to go to congratulation stage! (and get a HINT!)" print "Press '2' to exit!" print "Press '3' for ACHEIVMENTS! (SPOILER * ALERT!)" o1 = (raw_input('>>')) if o1 =="1": congrats1() if o1=="2": quit() if o1=="3": print "ACCOMPLISHMENTS:\n\n" print "*BECOME SATAN!*\n" print "*GET A HUMAN ARMY TO DEFEAT HELL!*\n" print "*HAVE A FRIENDLY TALK WITH A GANGSTER!*\n" print "*BECOME GOD!*" def menu(): print "Menu\n\n" print "(1)Start!\n" print "(2)Exit!\n" print "(3)Tutorial!\n" choice = (raw_input('>>')) if choice=="1": start() if choice=="2": quit() if choice=="3": print "Type your choice (default: 1,2) and then..." print "Click enter." print "Start game by writing 1, or quit by writing 2." o1 = (raw_input('>>')) if o1 =="1": start() if o1=="2": quit() menu()
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