Documentation
¶
Overview ¶
maze is Maze generation package for Go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Maze ¶
type Maze[T constraints.Integer] struct { Grid [][]T // 0: path, 1: wall Visited [][]bool // visited cells for DFS Rnd *rand.Rand // random number generator CellSize int // path width in pixels WallThickness int // wall thickness in pixels Cols int // number of maze cells (width) Rows int // number of maze cells (height) }
Click to show internal directories.
Click to hide internal directories.