node package manager
Loosely couple your services. Use Orgs to version and reuse your code. Create a free org »



a simple maze generator using DFS algorithm to generate a maze and the BFS to solve.

generally a good idea to have a maze with odd number for width, height. does not have to be square.


  var maze = require('maze');
  var m = new maze.Backtracker(33, 33);
  var start = [1, 1];
  var end = [31, 31];
  var soln = m.solve(start, finish);

in a browser

see demo

![a maze...](demo/demo.png)

no, it's not particularly amazing either...