maze-generator

0.1.2 • Public • Published

Maze Generator Build Status

Generate random maze

Installation

npm install maze-generator

Usage

Simply require the generator. You can then call it giving the dimensions of the maze you want in an array as first argument. It will return the grid generated

var generator = require('maze-generator')

// generate a maze of 20 cells by 20 cells
var maze = generator([20, 20])

Improvement

For now the generator only works with the recursing backtracking algorithm. But the module is written in a way to easily add other algorithm (I might add some in the future).

/maze-generator/

    Package Sidebar

    Install

    npm i maze-generator

    Weekly Downloads

    6

    Version

    0.1.2

    License

    MIT

    Last publish

    Collaborators

    • romainberger