types defines maze types.
Maze = object
stage*: seq[seq[byte]]
width*, height*: int
-
proc format(maze: Maze; r, w: string): string {...}{.raises: [], tags: [].}
-
Returns a string rectangle that replaced stage with r and w. Replaces road to r. Replace wall to w.
Japanese:
stage のbyte値を r と w で置換して返却する。
proc `$`(self: Maze): string {...}{.raises: [], tags: [].}
-