0.0.1 • Published 9 years ago

box-maze v0.0.1

Weekly downloads
2
License
MIT
Repository
-
Last release
9 years ago

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());