Versions in this module Expand all Collapse all v0 v0.9.9 Jun 4, 2026 v0.9.8 Jun 4, 2026 Changes in this version + func CreateEphemeralMaze2D(mazeRooms [][]*GridRoom) (allRoomIds []int, startRoomId int, endRoomId int) + type GridMaze struct + func NewGridMaze() *GridMaze + func (m *GridMaze) Generate2D(xMax, yMax int, seed ...string) [][]*GridRoom + func (m *GridMaze) GetCriticalPath() []MazeRoom + func (m *GridMaze) GetEnd() (int, int) + func (m *GridMaze) GetStart() (int, int) + type GridRoom struct + func (r *GridRoom) GetConnections() []MazeRoom + func (r *GridRoom) GetDistanceFromStart() int + func (r *GridRoom) GetPosition() (int, int, int) + func (r *GridRoom) GetStep() int + func (r *GridRoom) IsConnectedTo(room MazeRoom) bool + func (r *GridRoom) IsDeadEnd() bool + func (r *GridRoom) IsEnd() bool + func (r *GridRoom) IsStart() bool + type Maze interface + Generate2D func(xMax, yMax int, seed ...string) Maze2D + GetCriticalPath func() []MazeRoom + GetEnd func() (int, int) + GetStart func() (int, int) + type Maze2D [][]*GridRoom + type Maze3D [][][]*GridRoom + type MazeRoom interface + GetConnections func() []MazeRoom + GetDistanceFromStart func() int + GetPosition func() (int, int, int) + GetStep func() int + IsConnectedTo func(room MazeRoom) bool + IsDeadEnd func() bool + IsEnd func() bool + IsStart func() bool