spider = 1
# The Place class has 3 variables: a description, a list of exits and a list of things.
# The description and list of things are passed as parameters when a new Place is created;
# the list of exits is set to None,None,None,None. (An exit can only be set after the place
# it links to has been declared.)
# Place also has one function, describe(), which prints the description.
self.description = description
kicks = 0
northside = Place("You're on the north side of the chifferobe",["highshoe","sticker"])
middle = Place("You're in the middle of an overly long shifterobe, you notice there are 2 defined sides. There is also a small locked chest on the floor",)
southside = Place("You are in the south side of the chifferobe how spookie. You notice a small crack in the wood near the bottom, not big enough to expand with your hands.",)
outside =Place("David was too bored to add this bit just go back inside and open the box.",["key"])
stab = False
#Then define the exits:
# The goto function will change the currentplace if the exit in the
# specified direction is not None.
print "You cannot go there."
currentplace = currentplace.exits[direction]
# Where you start:
currentplace = middle
# Things you start with:
inventory = 
# Introductory comments:
print "You wake up with a really bad headache and a bump on your forehead.\n"
print "You see:",
for item in currentplace.things:
print item," ",
command = raw_input("What do you want to do? ").lower()
parsed = command.split() # This is a list of the words in command
if command in ["north","go north"]:
elif command in ["south","go south"]:
elif command in ["east","go east"]:
elif command in ["west","go west"]:
elif command in ["quit", "exit", "byebyebubbie"]:
elif command in ["inventory", "inv"]:
print "You look in your oversized hands and see:",
for item in inventory:
print item," ",
elif parsed in ["get", "take"]:
del parsed # remove the first word ("get" or "take")
for item in parsed: # allow getting multiple items
if item in currentplace.things:
print "You pick up the", (item)
if item == "sticker":
print "*\"100% maple\"*"
if item == "highshoe":
print "*a high heeled shoe, how useful...*"
elif parsed in ["put", "drop"]:
del parsed # remove the first word ("put" or "drop")
for item in parsed: # allow dropping multiple items
if item in inventory:
elif parsed in ["stab", "kick"] and stab == True and currentplace in stabspots:
if currentplace == southside and kicks != 3:
print "You kick the small crack and it becomes larger."
kicks = kicks + 1
if kicks >= 3:
southside = Place("You have reached the south side of the chifferobe how spookie.The crack on the east side is now just large enough for you to squish through.",)
elif parsed in ["stab", "kick"] and stab == True and currentplace not in stabspots:
print "No stabbing here man"
elif currentplace == middle and spider == 2:
print "You smack the little bugger and he dies, that was melodramatic and you now feel guilty."
spider == 3
elif parsed in ["use"]:
if parsed not in inventory:
print "You do not have ",parsed
print "You smack the wall with your high heeled shoe, all this does is break the heel off.No more beauty pagents for you mister."
print "Items get: normalshoe, pointyheel"
if parsed=="sticker" and "pointyheel" and "normalshoe" in inventory:
print"How smart of you! you attatch the pointy heel onto the toe of the shoe using the sticker. You can now stab stuff with your feet! (by typing 'stab') "
stab = True
if parsed  == "key" and currentplace == middle:
print "You open the chest and a massive spider comes out!!! HELP!(It's a boss fight... this will be good -_- )"
spider = 2
print "No can do bucko."
if spider == 3:
print "\nThanks for playing!\n"