Find random points to connect. Search for the closest point in the larger space. This is to minimize the length of the passage while maintaining good performance.
Get neighbor count at [i,j] in this._map
Make sure every non-wall space is accessible.
to call to display map when do
to consider empty space - defaults to 0
Fill the map with random values
Probability for a cell to become alive; 0 = all empty, 1 = all full
Change options.
Generated using TypeDoc
Options
List of neighbor counts for a new cell to be born in empty space
List of neighbor counts for an existing cell to survive
Topology 4 or 6 or 8