from random import randint import time import sys title = """ _____ _____ (, / ) /) (, / /) , /__ / ______ _ ___ _ __ _(/ / // _ _/_ ) / \_(_) // (__(/_(_) (_(_/ (_(_(_ ___/__(_(_(/__(__(/_(__ (_/ / / (__ / ______) _____) (, / /) / / (/ _ / ___ _ ___ _ ) / / )__(/_ / / ) (_(_// (__(/_ (_/ (____ / """ space = """ """ def delay(): sys.stdout.flush() time.sleep(4) print space sys.stdout.flush() def character_choice(): print title delay() character = raw_input("Would you like to play as 'Romeo' or 'Juliet'? ").lower() if character != "romeo" and character != "juliet": print space sys.stdout.flush() print "That is not an option" delay() character_choice() else: print space sys.stdout.flush() print "You have chosen " + character + " as your character" delay() if character == "romeo": intro_act1_Romeo() else: intro_act1_Juliet() def intro_act1_Romeo(): print "Act 1" delay() print "You are sad about being rejected by a girl named Rosaline and the montague and capulet families have just finished fighting." delay() print "You see your friend, Benvolio, walking up to you" delay() while True: response = raw_input("Do you choose to 'talk' or 'ignore': ").lower() if response != "talk" and response != "ignore": print "Not a valid choice" delay() else: break if response == "talk": print space sys.stdout.flush() print "You talk for some time about the situation with Rosaline. You then go home and prepare for a party raid" delay() else: print space sys.stdout.flush() print "You attempt to ignore Benvolio but he forces you to talk about your problems. You talk about the situation with Rosaline and eventually end the conversation and go home, still depressed, to prepare for a party raid" delay() street_act1_Romeo() def street_act1_Romeo(): print "You are on your way with your fellow Montagues and your good friend Mercutio to crash the Capulet party" delay() print "Mercutio is messing with you since he knows about your love life" delay() print "You play along and you have a good time on your way to the Capulet house" delay() chouse_act1_Romeo() def chouse_act1_Romeo(): print "Placeholder" def intro_act1_Juliet(): print "Act 1" delay() print "You are preparing for the upcoming capulet party when your mother, Lady Capulet, comes to talk with you about marriage" delay() while True: decision = raw_input("Will you 'ignore' or will you 'listen': ").lower() if decision != "ignore" and decision != "listen": print space sys.stdout.flush() print "Not a valid choice" delay() else: break if decision == "ignore": print space sys.stdout.flush() print "You ignore the fact that your mother is trying to talk to you about marriage and refuse to talk about it at the same time. She eventually leaves" delay() else: print space sys.stdout.flush() print "Upon listening, you discover that your parents want to marry you to the County Paris. You are not overly fond of the idea but choose to consider it" delay() character_choice()
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