2026-rff_mp/kuznetsovTD/tusk 2/models/cell.py
2026-05-25 13:06:15 +03:00

13 lines
348 B
Python

class Cell:
def __init__(self, x, y, is_wall=False, is_start=False, is_exit=False):
self.x = x
self.y = y
self.is_wall = is_wall
self.is_start = is_start
self.is_exit = is_exit
def is_passable(self):
return not self.is_wall
def __repr__(self):
return f"Cell({self.x}, {self.y})"