Skip to content

Instantly share code, notes, and snippets.

@liamlah
Created March 4, 2012 04:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liamlah/1970660 to your computer and use it in GitHub Desktop.
Save liamlah/1970660 to your computer and use it in GitHub Desktop.
zorksims
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