예제 #1
0
    def __init__(self):

        Square.__init__(self, "trap", "T", "It's a trap! You lost the game :(")
        self.canPass = False
        self.endGame = True
예제 #2
0
 def __init__(self):
     Square.__init__(self, "corridor", " ", "")
     self.canPass = True
예제 #3
0
파일: wall.py 프로젝트: ouskah/python-maze
 def __init__(self):
     Square.__init__(self, "wall", "O", "You cannot go through walls!")
     self.canPass = False
예제 #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
예제 #5
0
파일: exit.py 프로젝트: ouskah/python-maze
    def __init__(self):

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