class Tile: def __init__(self): self.first_visit = True def describe(self): if self.first_visit: print("You are now on the island. In front of you there are " "some trees and a small path.\nFeeling adventurous?\n") self.first_visit = False else: print("The beach is quiet. Nothing seems to be going on.") def action(self, player, do): print("Sorry, wat?!") def leave(self, player, direction): if direction == "e": print("You can't go back by swimming, that part is full of " "electric eels.\n") return False elif direction == "s": print("I'm afraid I can't let you go there Dave.\n") return False else: return True