Esempio n. 1
0
def front_yard():
    os.system("cls"), logo(), status()
    print "\n"
    print "The front yard looks nice, Manny always keeps the lawn cut.\n"
    print "You can see your house and you like it.\n"
    print "Lot's of choices here.\n"
    print "You can exit to the street through the gate.\n"
    print "You can go through the side gate and enter the covered patio.\n"
    print "You can walk to the front porch.\n"
    print "Or you can go to the side of the house.\n"
    print "Your thoughts? \n\n"
    print "(street/patio/porch/side)\n\n"
    choice = raw_input("> ")

    if choice == "street":
        street()
    elif choice == "patio":
        patio()
    elif choice == "porch":
        porch()
    elif choice == "side":
        side_house()
    else:
        print "\n"
        print "Please choose one of these: (street/patio/porch/side)\n"
        print "Press enter when you are ready.\n\n"
        print "(Enter)\n\n"
        raw_input("> ")
        front_yard()
Esempio n. 2
0
def start():
    os.system("cls"), logo(), beep1(), status()
    print"\n\n\n"
    print "You are chilling out at home, laying on your bed.\n"
    print "The Bravo Network is on TV.\n"
    print "You're husband, Tom, is next to you on the bed programming on " \
          "his computer as usual.\n"
    print "There are three puppies on the bed: Jill, Jack and Jet.\n"
    print "The fourth puppy, Dodo, is missing!\n"
    print "Do you want to get up and find her? \n\n"
    print "(y/n)\n\n"
    march()
    choice = raw_input("> ")

    if choice == "y":
        bedroom()
    elif choice == "n":
        lazy()
    else:
        print "\n"
        print "Can't you read? I said (y/n)!\n"
        print "Press enter when you are ready.\n\n"
        print "(Enter)\n\n"
        raw_input("> ")
        start()
Esempio n. 3
0
def bathroom():
    os.system("cls"), logo(), status()
    print "\n"
    print "Yup, it's a bathroom.\n"
    # print inv
    if ["piss",2] not in inv:
        print "There is piss on the ground from Jack.\n"
        print "You can clean the piss or go back to the hallway.\n"
        print "(piss/hallway)\n\n"
        choice = raw_input("> ")
    else:
        print "At least there is no more piss on the floor.\n\n"
        print "Press Enter to go to the hallway.\n\n"
        raw_input("> ")
        hallway()

    if choice == "piss" and ["piss",2] not in inv:
        inventory_add(choice)
    elif choice == "hallway":
        hallway()
    else:
        print "\n"
        print "Either wipe up Jack's piss or go to the kitchen\n"
        print "Try again (piss/hallway)\n"
        print "Press enter when you are ready.\n\n"
        print "(Enter)\n\n"
        raw_input("> ")
    bathroom()
Esempio n. 4
0
def laundry_room():
    os.system("cls"), logo(), status()
    print "\n"
    print "This laundry room is filled with clothes and laundry items.\n"
    if ["puke",5] not in inv:
        print "There is puke on the floor from Jack.\n"
        print "You can clean the puke or go to the covered patio outside or the kitchen.\n\n"
        print "(puke/patio/kitchen)?\n\n"
        choice = raw_input("> ")
    else:
        print "You have cleaned the puke from the floor.\n\n"
        print "You can go to the covered patio outside or the kitchen.\n\n"
        print "(patio/kitchen)?\n\n"
        choice = raw_input("> ")

    if choice == "puke" and ["puke",5] not in inv:
        inventory_add(choice)
    elif choice == "patio":
        patio()
    elif choice == "kitchen":
        kitchen()
    else:
        print "\n"
        print "It's simple\n"
        print "Either go outside to the covered patio or go to the kitchen\n"
        print "Try again (patio/kitchen)\n"
        print "Press enter when you are ready.\n\n"
        print "(Enter)\n\n"
        raw_input("> ")
    laundry_room()
Esempio n. 5
0
def lazy():
    os.system("cls"), logo(), status()
    print "\n"
    print "Yeah, getting up would take too much energy.\n"
    print "Press enter when you are ready.\n\n"
    print "(Enter)\n\n"
    raw_input("> ")
    start()
Esempio n. 6
0
def back_room():
    os.system("cls"), logo(), status()
    print "\n"
    print "This is where homeless items from around the house goes.\n"
    print "This house is 'homeless item friendly'.\n"
    print "Unless you are looking for something other than Dodo, you should leave.\n"
    print "Press Enter to leave now.\n\n"
    print "(Enter)\n\n"
    raw_input()
    hallway()
Esempio n. 7
0
def street():
    os.system("cls"), logo(), status()
    print "\n"
    print "LOOK OUT! \n"
    print "There is Peter Carlson and Coral Weston!\n"
    print "Hurry back to the front yard!\n"
    print "Press Enter to escape the neighborhood gossip immediately.\n\n"
    print "(Enter)\n\n"
    raw_input("> ")
    front_yard()
Esempio n. 8
0
def bedroom():
    os.system("cls"), logo(), status()
    print "\n"
    print "You are in your bedroom.\n"
    print "There is a door to the hallway.\n"
    print "There is a window that leads to the side of the house.\n"
    print "which way? \n\n"
    print "(hallway/side)\n\n"
    choice = raw_input("> ")

    if choice == "hallway":
        hallway()
    elif choice == "side":
        side_house()
    else:
        print "\n"
        print "What don't you understand about (hallway/side)?\n"
        print "Press enter when you are ready.\n\n"
        print "(Enter)\n\n"
        raw_input("> ")
        bedroom()
Esempio n. 9
0
def side_house():
    os.system("cls"), logo(), status()
    print "\n"
    print "You are outside on the side of the house.\n"
    print "there is an air conditioning unit and an old meat smoker here.\n"
    print "You can walk around the hedges to the front yard or go through the bedroom window that Tess fixed.\n"
    print "Which way? \n\n"
    print "(front/bedroom)\n\n"
    choice = raw_input("> ")

    if choice == "front":
        front_yard()
    elif choice == "bedroom":
        bedroom()
    else:
        print "\n"
        print "Please choose one of these: (front/bedroom)\n"
        print "Press enter when you are ready.\n\n"
        print "(Enter)\n\n"
        raw_input("> ")
        side_house()
Esempio n. 10
0
def kitchen():
    os.system("cls"), logo(), status()
    print "\n"
    print "The kitchen is kinda small but it's got everything you need.\n"
    print "From here you can see the laundry room and the family room to the right.\n"
    print "Enter the laundry room, front door in the family room or the hallway.\n\n"
    print "(laundry/family/hallway)\n\n"
    choice = raw_input("> ")

    if choice == "laundry":
        laundry_room()
    elif choice == "family":
        family_room()
    elif choice == "hallway":
        hallway()
    else:
        print "\n"
        print "Please choose one of these: (laundry/family/hallway)\n"
        print "Press enter when you are ready.\n\n"
        print "(Enter)\n\n"
        raw_input("> ")
        kitchen()
Esempio n. 11
0
def patio():
    os.system("cls"), logo(), status()
    print "\n"
    print "The covered patio is filled with awesome computers and electronics.\n"
    print "It's where the great computer scientist, Tom Kelly, creates greatness.\n"
    print "But that's another story.\n"
    print "There is poop on the ground from Jet.\n"
    print "beep beep click click beep beep.\n"
    print "You can go to the front yard from here or go to the laundry room.\n\n"
    print "(front/laundry)\n\n"
    choice = raw_input("> ")

    if choice == "front":
        front_yard()
    elif choice == "laundry":
        laundry_room()
    else:
        print "\n"
        print "Nope... one of these: (front/laundry)\n\n"
        print "Press enter when you are ready.\n\n"
        print "(Enter)\n\n"
        raw_input("> ")
        patio()
Esempio n. 12
0
def porch():
    os.system("cls"), logo(), status()
    print "\n"
    print "The porch is the best place to view Robert Ettleman's front door.\n"
    print "It's been reported that the door was in fact, stolen from him.\n"
    print "You can open the door to the family room or go to the " \
          "front yard and admire Bob's door some more\n"
    print "Choice?\n\n"
    print "(family/front)\n\n"
    choice = raw_input("> ")

    if choice == "family":

        family_room()
    elif choice == "front":
        front_yard()
    else:
        print "\n"
        print "Please choose one of these: (family/front)\n"
        print "Press enter when you are ready.\n\n"
        print "(Enter)\n\n"
        raw_input("> ")
        porch()
Esempio n. 13
0
def family_room():
    os.system("cls"), logo(), status()
    print "\n"
    print "You are in the family room.\n"
    print "There is a piano, a fireplace, table, couch and TV.\n"
    print "There is poop on the floor from Jet.\n"
    print "Tom has more computer shit on the table.\n"
    print "You can see the kitchen behind you.\n"
    print "Through the craftsman windows, is the front porch.\n\n"
    print "(kitchen/porch)\n\n"
    choice = raw_input("> ")

    if choice == "kitchen":
        kitchen()
    elif choice == "porch":
        porch()
    else:
        print "\n"
        print "Please choose one of these: (kitchen/porch)\n\n"
        print "Press enter when you are ready.\n\n"
        print "(Enter)\n\n"
        raw_input("> ")
        family_room()
Esempio n. 14
0
def  hallway():
    os.system("cls"), logo(), status()
    print "\n"
    print "You are in a small hallway.\n"
    print "You can go to the kitchen, bathroom, bedroom or back room from here.\n"
    print "Which way? \n\n"
    print "(kitchen/bedroom/bathroom/back)\n\n"
    choice = raw_input("> ")

    if choice == "kitchen":
        kitchen()
    elif choice == "bathroom":
        bathroom()
    elif choice == "back":
        back_room()
    elif choice == "bedroom":
        bedroom()
    else:
        print"\n"
        print "Choose one of these three (kitchen/bathroom/back/bedroom)\n"
        print "Press enter when you are ready.\n\n"
        print "(Enter)\n\n"
        raw_input("> ")
        hallway()
Esempio n. 15
0
import os
from graphics import logo
from audio import beep1,march

os.system("cls"), logo()

items = {'poop': ['poop', 1], 'piss': ['piss', 2], 'puke': ['puke', 5], 'snack': ['poopy snack', 10]}
inv = []


def status():
    total = 0

    print "\nInventory:"
    print "-" * 10
    for name,value in inv:
        total = total + int(value)

        print "%s" % name

    print "\nScore :", total
    print "-" * 10

def inventory_add(name):
    try:
        inv.append(items[name])
    except:
        print "Try again"
    print "\nYou picked up the", name