finish the thing

This commit is contained in:
Maoake Teriierooiterai
2026-04-03 12:30:42 +02:00
parent 9c76914366
commit b6067b2045
3 changed files with 14 additions and 3 deletions
+2
View File
@@ -36,6 +36,8 @@ class AMazeIng(BaseModel):
raise ValueError("Entry coordinates exceed the maze size")
if self.exit[0] > self.width or self.exit[1] > self.height:
raise ValueError("Exit coordinates exceed the maze size")
if self.entry == self.exit:
raise ValueError("Entry and Exit coordinates cant be the same")
return self
def generate(self) -> Generator[Maze, None, None]: