Exemple #1
0
    def __init__(self):

        Square.__init__(self, "trap", "T", "It's a trap! You lost the game :(")
        self.canPass = False
        self.endGame = True
Exemple #2
0
 def __init__(self):
     Square.__init__(self, "corridor", " ", "")
     self.canPass = True
Exemple #3
0
 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
Exemple #5
0
    def __init__(self):

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