Exemple #1
0
def rabid_dog_room():
    print "You face a rabid dog in front of a door, and you see squeaky toy, what do you do?"
    dog_choice = raw_input("> ")
    if "throw" in dog_choice:
        print "The dog chases after the squeaky toy, and you proceed through the door."
        jewel_room()
    elif "growl" in dog_choice:
        dead("The dog bites you and you die of rabies")
    else:
        print "Since you want to", "\"" + dog_choice + "\"", "I'm not going to stop you." 
        dead("Good luck with that.")
Exemple #2
0
def genie_room():
    global num_genies
    swear_list = ['f**k', 'shit', 'damn', 'pussy', 'c**k']
    if num_genies == 1:
        print "**POOF** A genie appears!"
        print "\nWhat do you wish for?"
    else:
        print "\n"
        print "Then " + "a genie appears then " * num_genies + "they ask you:"
        print "\nNow that you have more genies and wishes, what do you wish for?"
    wish = raw_input("> ")
    if "wishes" in wish:
        num_genies += 1
        genie_room()
    elif "diamond" in wish or "gem" in wish or "jewel" in wish:
        jewel_room()
    elif wish in swear_list:
        dead("You have a potty mouth!")
    else:
        print "Your wish: \"" + wish + "\" is granted!"
        dead("Good job.")