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

13 lines
358 B
Python
Raw Normal View History

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