Socket
Book a DemoInstallSign in
Socket

box-maze

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

box-maze

Box maze creator and solver.

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

box-maze

npm license dependencies

Box maze creator and solver.

Usage

Command Line

$ npm install box-maze -g
$ box-maze create

Module

var BoxMaze = require('box-maze'); // Supports [UMD](https://github.com/umdjs/umd)

// All parameters are optional
var maze = new BoxMaze(50, 50, { x: 0, y: 0 }, { x: 20, y: 23 });

// Uses [backtracking algorithm](http://en.wikipedia.org/wiki/Backtracking) internally

// Create it!
maze.create();

// Solve it!
maze.solve();

console.log(maze.toString());

FAQs

Package last updated on 06 Feb 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