1 file changed, +4, -5
8c37791fix(a_maze_ing): change gen.maze.* to gen.*
author
mogi <git@mogiya.dev> on 28-05-2026 00:34 UTC+1
committer
mogi <git@mogiya.dev> on 28-05-2026 00:34 UTC+1
parent968b515
+4, -5
    @@ -17,12 +17,11 @@ def write_hex_output(gen: MazeGenerator, path: str) -> None:
1717     Raises:
1818         OSError: If the file cannot be opened or written.
1919     """
20  -    maze = gen.maze
21  -    ex, ey = maze.entry
22  -    xx, xy = maze.exit_
23  -    directions = "".join(maze.path)
  20+    ex, ey = gen.entry
  21+    xx, xy = gen.exit_
  22+    directions = "".join(gen.path)
2423     with open(path, "w") as f:
25  -        for line in maze.to_hex_lines():
  24+        for line in gen.to_hex_lines():
2625             f.write(line)
2726             f.write("\n")
2827         f.write("\n")