Nuclear Pumpkin Mayhem

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

    0.0.1 • Public • Published

    ellerjs

    A JavaScript implementation of Eller's maze generation algoritm. This algorithm creates mazes, having 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;
    }

    Keywords

    Install

    npm i ellerjs

    DownloadsWeekly Downloads

    0

    Version

    0.0.1

    License

    ISC

    Unpacked Size

    6.61 kB

    Total Files

    6

    Last publish

    Collaborators

    • ihorb