types

Search:
Group by:

types defines maze types.

Types

Maze = object
  stage*: seq[seq[byte]]
  width*, height*: int

Consts

road = 0'u8
wall = 1'u8

Procs

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値を rw で置換して返却する。

proc `$`(self: Maze): string {...}{.raises: [], tags: [].}