docstring to output file function

This commit is contained in:
2026-04-03 18:34:18 +02:00
parent 9fa121cdce
commit 21e9aba95f
+1
View File
@@ -67,6 +67,7 @@ class AMazeIng(BaseModel):
return self.solver.solve(self.maze, self.height, self.width) return self.solver.solve(self.maze, self.height, self.width)
def export_maze(self) -> None: def export_maze(self) -> None:
"""Export maze, entry, exit and resolved path in output_file"""
with open(self.output_file, "w") as file: with open(self.output_file, "w") as file:
file.write(self.__str__()) file.write(self.__str__())