Skip to content

texture bias option #7

@Quinten

Description

@Quinten

Hello,

I think I have another feature request.

I was revisiting the old article you mentioned in your readme.

http://www.neocomputer.org/projects/eller.html

The final part of the article briefly highlights something about texture bias. Basically it is the ability to shift the probability of adding a right or bottom wall. The result is either longer columns or longer rows. A more vertical maze or a more horizontal maze.

From reading your code, you already have the right probability argument for mergeRandomSetsIn where you knock down right walls, but it is always passed from code and not from the options passed with the public function generate.

Probably also the if (exit) { in addSetExits needs to be influenced somehow for the bottom walls.

Having the texture option at generate would be nice...

If you don't have time, I could send you a PR...

Kind regards,
Quinten

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions