You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some algorithms could have functions that pick neighbor cells to connect to that aren't completely random. Some examples:
Horizontal and vertical bias (e.g. picking a vertical neighbor is twice as likely as picking a horizontal neighbor)
Pick neighbors according to a perlin/open-simplex noise function (creates blobby patterns)
Other functions (see this p5.js sketch I made a while ago: change "select neighbor mode")
Custom functions? It wood be cool if the user was able to give the algorithm a custom function to pick the neighbors with. (Maybe it takes in the cell's x and y position and it's possible neighbors and it outputs which neighbor/direction to chose?)
This will work best for algorithms like the recursive backtracker, where almost every step we have to make a decision about which neighbor we should connect to.
The text was updated successfully, but these errors were encountered:
Some algorithms could have functions that pick neighbor cells to connect to that aren't completely random. Some examples:
This will work best for algorithms like the recursive backtracker, where almost every step we have to make a decision about which neighbor we should connect to.
The text was updated successfully, but these errors were encountered: