Ejemplo n.º 1
0
    def __init__(self):

        Square.__init__(self, "trap", "T", "It's a trap! You lost the game :(")
        self.canPass = False
        self.endGame = True
Ejemplo n.º 2
0
 def __init__(self):
     Square.__init__(self, "corridor", " ", "")
     self.canPass = True
Ejemplo n.º 3
0
 def __init__(self):
     Square.__init__(self, "wall", "O", "You cannot go through walls!")
     self.canPass = False
Ejemplo n.º 4
0
 def __init__(self, frame, row, column, value, lines):
     Square.__init__(self, frame, row, column, str(value), lines)
     self.value = int(value)
     self.done = False
Ejemplo n.º 5
0
    def __init__(self):

        Square.__init__(self, "exit", "U", "Congratulations, you won!")
        self.canPass = True
        self.endGame = True
Ejemplo n.º 6
0
 def __init__(self, position, player):
     Square.__init__(self, position)
     self.player = player
Ejemplo n.º 7
0
 def __init__(self):
     Square.__init__(self, "door", ".", "")
     self.canPass = True