2026-rff_mp/pomelovsd/ExitMaze/Core/Cell.py
2026-05-23 13:37:43 +03:00

13 lines
366 B
Python

class Cell:
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