Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Javascript maze generation using recursive backtracking

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 README.md
Octocat-spinner-32 recursive-maze.js
README.md

Recursive Maze

Will generate a maze using recursive backtracking.

Example Usage

var rmz = require('recursive-maze')

var grid = rmz.grid(20, 10)

rmz.carve(grid)
rmz.print(grid)

Example Output

.#...#........#.....##..
...#.#.######...##.##..#
.#.###.#....#.###...#.##
.#..#..###.##...###...#.
.##.#.##...####...###.#.
.####.#..#..#.###.#.#.#.
........###.#.....#.#.#.
.#.#.##.#...#.#.#.#.....
Something went wrong with that request. Please try again.