2026-rff_mp/pomelovsd/ExitMaze/Core/Cell.py

13 lines
366 B
Python
Raw Normal View History

class Cell:
2026-05-23 10:37:43 +00:00
def __init__(self, x = 0, y = 0, 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