romainberger / maze-generator

Maze generator for node

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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).

About

Maze generator for node

License:MIT License


Languages

Language:JavaScript 100.0%