class

MazeCraze::Maze

Inherits MazeCraze::MazeJsonSerializer < Reference < Object

Constants

OFFSETS = [{-1, 0}, {1, 0}, {0, -1}, {0, 1}]

Constructors

new(width : UInt32, height : UInt32, rand : Random = Random::DEFAULT)
Source

Class methods

from_json(json)
Source

Instance methods

cell_type(x : UInt32, y : UInt32) : Symbol
Source
cell_visited?(x : UInt32, y : UInt32) : Bool
Source
configure(start_cell : CellConfig, end_cell : CellConfig)
Source
east_wall_of?(x : UInt32, y : UInt32) : Bool
Source
generate!(generation_method : GenerationMethod, animate = false) : Maze
Source
height
Source
north_wall_of?(x : UInt32, y : UInt32) : Bool
  • Cell Information Accessors -
Source
renderer=(renderer : MazeGenerationRenderer | Nil)
Source
south_wall_of?(x : UInt32, y : UInt32) : Bool
Source
west_wall_of?(x : UInt32, y : UInt32) : Bool
Source
width
  • Public API -
Source

Nested types