ellerjs
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

ellerjs

tests npm

A JavaScript implementation of Eller's maze generation algoritm. this algorithm creates mazes that have a path between any two cells.

Rendered example

maze.png

Installation

npm i ellerjs

Usage

const eller = require('ellerjs');
const maze = eller(15, 15);

Maze is two-dimensional array representing rows and cells. Cell structure:

interface Cell {
  top: boolean; // true if cell has a wall in this direction, false if not
  bottom: boolean;
  left: boolean;
  right: boolean;
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    2
  • 0.0.1
    0

Package Sidebar

Install

npm i ellerjs

Weekly Downloads

2

Version

0.0.2

License

ISC

Unpacked Size

7.15 kB

Total Files

7

Last publish

Collaborators

  • ihorb