Socket
Book a DemoInstallSign in
Socket

maze-generator

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

maze-generator

Maze generator

latest
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 30 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts