Generate and render mazes with Elixir. Based on material presented in Mazes for Programmers
Maze.Grid.new(10,10) |> Maze.Gen.BinaryTree.on |> Maze.Rend.png("binarytree.png")
Maze.Grid.new(10,10) |> Maze.Gen.Sidewinder.on |> Maze.Rend.png("sidewinder.png")
Maze.Grid.new(10,10) |> Maze.Gen.AldousBroder.on |> Maze.Rend.png("aldous_broder.png")
If available in Hex, the package can be installed
by adding maze
to your list of dependencies in mix.exs
:
def deps do
[
{:maze, "~> 0.1.0"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/maze.