MazeGenerator (maze_generator v0.1.0) View Source

Creates a maze with a guaranteed path from any specified cell to any other cell in the maze.

Link to this section Summary

Functions

Generates a new maze of the specified width and height using the requested algorithm. Does not generate an ingress or egress.

Link to this section Functions

Link to this function

new(width, height, algorithm \\ :recursive_backtracker)

View Source

Specs

new(non_neg_integer(), non_neg_integer(), atom()) ::
  {:ok, MazeGenerator.Grid.t()} | {:error, String.t()}

Generates a new maze of the specified width and height using the requested algorithm. Does not generate an ingress or egress.