/maze

Generating mazes with Elixir https://pragprog.com/book/jbmaze/mazes-for-programmers

Primary LanguageElixir

Maze

Generate and render mazes with Elixir. Based on material presented in Mazes for Programmers

Binary Tree

Maze.Grid.new(10,10) |> Maze.Gen.BinaryTree.on |> Maze.Rend.png("binarytree.png")

Sidewinder

Maze.Grid.new(10,10) |> Maze.Gen.Sidewinder.on |> Maze.Rend.png("sidewinder.png")

Aldous Broder

Maze.Grid.new(10,10) |> Maze.Gen.AldousBroder.on |> Maze.Rend.png("aldous_broder.png")

Installation

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.