mirror of
https://github.com/maoakeEnterprise/amazing.git
synced 2026-11-01 15:42:03 +01:00
add export file
This commit is contained in:
1 parent
04c28a851f
commit
9fa121cdce
3 files changed
+10
-7
No files matched your search
@@ -66,6 +66,10 @@ class AMazeIng(BaseModel):
|
||||
"""
|
||||
return self.solver.solve(self.maze, self.height, self.width)
|
||||
|
||||
def export_maze(self) -> None:
|
||||
with open(self.output_file, "w") as file:
|
||||
file.write(self.__str__())
|
||||
|
||||
def __str__(self) -> str:
|
||||
"""Return a string representation of the maze and its solution.
|
||||
|
||||
|
||||
Reference in new issue
Block a user