MazeGenerator.Cell (maze_generator v0.1.0) View Source
Represents a cell.
x: zero based horizontal position starting from the left. y: zero based vertical position starting from the top. n: north wall, x/y coordinates e: east wall, x/y coordinates s: south wall, x/y coordinates w: west wall, x/y coordinates
Link to this section Summary
Functions
Returns whether the two cells passed are the same cell.
Creates a new Cell at the specified position with borders references set.
Link to this section Types
Specs
t() :: %MazeGenerator.Cell{
e: {pos_integer(), pos_integer()},
n: {pos_integer(), pos_integer()},
s: {pos_integer(), pos_integer()},
w: {pos_integer(), pos_integer()},
x: pos_integer(),
y: pos_integer()
}
Link to this section Functions
Returns whether the two cells passed are the same cell.
Creates a new Cell at the specified position with borders references set.