@sbj42/maze-generator
Advanced tools
Comparing version 2.0.1 to 2.0.3
@@ -9,3 +9,6 @@ { | ||
"error", | ||
4 | ||
4, | ||
{ | ||
"SwitchCase": 1 | ||
} | ||
], | ||
@@ -12,0 +15,0 @@ "semi": "error", |
{ | ||
"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; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6053
64
63