import time def pseudogame(): action1 = raw_input("What do you do?\n\nCall out (co)\t\tRemain silent (rs)\n\n").lower() while action1 == "": action1 = raw_input("What do you do?\n\nCall out (co)\t\tRemain silent (rs)\n\n").lower() if action1 == "co" or action1 == "call out": time.sleep(3) print "\nYou choose to call out.\n" time.sleep(3) print 'YOU: "Hello? Is anyone there?"\n' time.sleep(5) elif action1 == "rs" or action1 == "remain silent": time.sleep(3) print "\nYou choose to remain silent.\n" time.sleep(7.5) print 'UnkVOICE: "You were always the stubborn type Pap."\n' time.sleep(3) print "You suddenly hear movement\n" if action1 == "rs" or action1 == "remain silent": time.sleep(3) print 'UnkVOICE: "I am going to remove your blindfold,\nthen, perhaps you will talk?"\n' elif action1 == "co" or action1 == "call out": time.sleep(3) print 'UnkVOICE; "I am here Pap."\n' time.sleep(4) print 'You recognize the voice.\n' time.sleep(3) print "As you have the blindfold removed,\nYou mutter the name of your captor\n" time.sleep(3) print 'YOU: "Jackson?"\n' if action1 == "rs" or action1 == "remain silent": time.sleep(3) print 'JACKSON: "So he does talk!"\n' elif action1 == "co" or action1 == "call out": time.sleep(2) print 'Jackson or not, they remain silent.\nAs you see there is no light in the room, you cannot see them.\n' time.sleep(3) print 'JACKSON: "Let us have a bit of reminiscing shall we?"\n\n' time.sleep(3) game() pseudogame() def intro(): print "You wake with a blindfold mysteriously tied around your face.\n" time.sleep(3) print "You can't find your Revolver\n" time.sleep(3) pseudogame() intro() def game(): bullets = 6 sanity = 100 print "This is function noire at play" game()
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