def __init__(self): Square.__init__(self, "trap", "T", "It's a trap! You lost the game :(") self.canPass = False self.endGame = True
def __init__(self): Square.__init__(self, "corridor", " ", "") self.canPass = True
def __init__(self): Square.__init__(self, "wall", "O", "You cannot go through walls!") self.canPass = False
def __init__(self, frame, row, column, value, lines): Square.__init__(self, frame, row, column, str(value), lines) self.value = int(value) self.done = False
def __init__(self): Square.__init__(self, "exit", "U", "Congratulations, you won!") self.canPass = True self.endGame = True
def __init__(self, position, player): Square.__init__(self, position) self.player = player
def __init__(self): Square.__init__(self, "door", ".", "") self.canPass = True