13 lines
358 B
Python
13 lines
358 B
Python
|
|
class Cell:
|
||
|
|
def __init__(self, x, y, isWall = False, isStart = False, isExit = False):
|
||
|
|
self.x = x
|
||
|
|
self.y = y
|
||
|
|
self.isWall = isWall
|
||
|
|
self.isStart = isStart
|
||
|
|
self.isExit = isExit
|
||
|
|
|
||
|
|
# Возращает True, если посаседству стена
|
||
|
|
def isPassable(self):
|
||
|
|
return not self.isWall
|
||
|
|
|