@miketmoore/maze-generator
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

Maze Generator

This is a javascript library, written in TypeScript that generates a maze data structure.

Install

yarn add maze-generator --dev

Usage

import { mazeGenerator } from 'maze-generator'
const grid = mazeGenerator({
    rows: 10,
    columns: 10
})

Tests

yarn test

Publishing a Release

  1. Checkout the commit that is ready to release.
  2. Check this out as a branch named release-X.X.X
  3. Compile yarn build (this will also clean the build directory first) - the TypeScript is compiled to JavaScript into the dist directory.
  4. Publish with yarn publish --access=public. The CLI will prompt for the version number and npm credentials.
  5. Navigate to https://www.npmjs.com/package/@miketmoore/maze-generator and smile :)

Benchmark

yarn && yarn build && yarn benchmark

Example output after benchmark test runs:

recursive x 117 ops/sec ±2.39% (66 runs sampled)
iterative x 125 ops/sec ±1.16% (71 runs sampled)
Fastest is iterative

Readme

Keywords

Package Sidebar

Install

npm i @miketmoore/maze-generator

Weekly Downloads

1

Version

2.0.3

License

SEE LICENSE IN LICENSE.txt

Unpacked Size

53.3 kB

Total Files

22

Last publish

Collaborators

  • miketmoore