def enter(self): if 'ghost_3' in bad_guys.demon_x: return bad_guys.ghost(self) else: print "\nThere's nothing in this room but more" print "boarded windows, the door, and a closet." while True: print "\nWhich way boss?\n" action = raw_input('> ').lower() if 'door' in action: return 'living_room' elif 'closet' in action: return self.closet_d() else: print "Not sure that's an option."
def enter(self): if 'ghost_2' in bad_guys.demon_x: return bad_guys.ghost(self) else: print "\nThis room is dark... You dont like it" print "at all..." while True: print "\nDo you want to go back through" print "the blue door, or through the small" print "door in front of you?\n" action = raw_input('> ').lower() if 'blue' in action: return 'bed_1' elif 'small' in action: return 'hall' else: print "\nNot sure that's an option."