Created
March 4, 2012 04:25
-
-
Save liamlah/1970660 to your computer and use it in GitHub Desktop.
zorksims
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class kitchenclass: | |
fridgefull = 1 | |
drawerfull = 1 | |
petdog = 1 | |
placedescript = 1 | |
kitchenobject=kitchenclass() | |
def start(): | |
print"you find yourself in the kitchen, you see a fridge, a drawer, and a dog. Exits are to the front room, or up the stairs" | |
print "what would you like to do?" | |
actionkitchen = raw_input() | |
inkitchen(actionkitchen) | |
if actionkitchen == "take whisk" or "whisk" and kitchenobject.drawerfull == 1: | |
kitchenobject.drawerfull = 0 | |
print "you take the whisk and place it in your backpack." | |
else: | |
print "I don't know what that is" | |
def inkitchen(actionkitchen): | |
#if kitchenobject.placedescript == 1: | |
# print "you find yourself in the kitchen, you see a fridge, a drawer, and a dog. Exits are to the front room, or up the stairs" | |
# kitchenobject.placedescript = 0 | |
actionkitchen = raw_input("what would you like to do?" ) | |
if actionkitchen == "open drawer" or "drawer": | |
print "you open the drawer, you find a whisk and a bunch of useless utensils" | |
return actionkitchen | |
# elif actionkitchen == "take whisk" or "whisk" and kitchenobject.drawerfull == 1: | |
# kitchenobject.drawerfull = 0 | |
# print "you take the whisk and place it in your backpack." | |
#else: | |
# print "I don't know what that is" | |
# inkitchen() | |
start() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment