class Tile: def describe(self): print("Big rocks around the place, and the sound of small waves at the " "weastern sea makes you calm! \n") def action(self, player, do): print("Sorry, I don't understand.\n") def leave(self, player, direction): if direction == "w": print("My dear traveler, you can't fall of the cliff! " "I won't let you do it.\n") return False elif direction == "e": print("It looks like the back of a wooden hut.\n" "Since you don't walk though walls (yet) " "you can't go there.\n") return False elif direction == "s": print("You follow the path uphill.") return True else: return True