forked from UNN/2026-rff_mp
13 lines
240 B
Python
13 lines
240 B
Python
|
|
from dataclasses import dataclass
|
||
|
|
|
||
|
|
|
||
|
|
@dataclass(frozen=True)
|
||
|
|
class Cell:
|
||
|
|
x: int
|
||
|
|
y: int
|
||
|
|
is_wall: bool = False
|
||
|
|
is_start: bool = False
|
||
|
|
is_exit: bool = False
|
||
|
|
|
||
|
|
def is_passable(self) -> bool:
|
||
|
|
return not self.is_wall
|