Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sbj42/maze-generator

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sbj42/maze-generator - npm Package Compare versions

Comparing version 2.0.1 to 2.0.3

5

.eslintrc.json

@@ -9,3 +9,6 @@ {

"error",
4
4,
{
"SwitchCase": 1
}
],

@@ -12,0 +15,0 @@ "semi": "error",

4

package.json
{
"name": "@sbj42/maze-generator",
"version": "2.0.1",
"version": "2.0.3",
"description": "An infrastructure for generating mazes",

@@ -28,3 +28,3 @@ "main": "src",

"dependencies": {
"@sbj42/maze-generator-core": "^0.1.0"
"@sbj42/maze-generator-core": "^0.1.4"
},

@@ -31,0 +31,0 @@ "devDependencies": {

@@ -34,3 +34,3 @@ # maze-generator

`generate(width, height, options)`
`mazeGen.generate(width, height, options)`

@@ -43,2 +43,6 @@ The `generate()` function takes a width and a height, and returns a new maze object. The (optional) `options` argument

`@sbj42/maze-generator-backtrack` (though you'll need to make sure that's installed to use it).
* `options.mask`: (optional) A `GridMask`, indicating the cells the maze can use. Any cell marked `false` in the mask
will not be used in the maze. Some maze algorithms may not support this option. The mask should be a single connected
region, if it isn't then the resulting maze may only fill one region. For information about the `GridMask` API,
see the `@sbj42/maze-generator-core` package.

@@ -58,4 +62,4 @@ `maze.width()` / `maze.height()`

## Demo
`mazeGen.GridMask(width, height, options)`
For a demonstration, see the package ``@sbj42/maze-generator-demo`.
For information about the `GridMask` API, see the `@sbj42/maze-generator-core` package.
exports.generate = require('./generate');
exports.GridMask = require('@sbj42/maze-generator-support').GridMask;
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc