A collection of experiments with maze generation and solving.
https://elimerl.github.io/maze-experiments/demo/ shows off the capabilities of this library. The source is available in https://github.com/elimerl/maze-experiments/tree/master/docs/demo and shows a possible example of using parcel-bundler with this.
yarn install
import { createWriteStream } from "fs";
const maze = new Grid(10, 10);
BinaryTree.on(maze);
// show ascii
console.log(maze.toString());
// write to png
maze.toCanvas().createPNGStream().pipe(createWriteStream("maze.png"));
More in examples
The documentation is online at https://elimerl.github.io/maze-experiments/.
yarn build
๐ค elimerl
- Github: @elimerl