2026-rff_mp/kuznetsovTD/tusk 2/models/cell.py

13 lines
348 B
Python
Raw Normal View History

2026-05-25 10:06:15 +00:00
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})"