mirror of
https://github.com/maoakeEnterprise/amazing.git
synced 2026-04-29 00:14:34 +02:00
finish the thing
This commit is contained in:
@@ -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]:
|
||||
|
||||
Reference in New Issue
Block a user