Skip to content

Food-filling algorithm has a tendency to overfill chambers #872

Description

@Debilski
Image Image Image

When chance generates a maze with not enough chambers, the filling algorithm always fills the chambers first, giving a somewhat uneven experience (sometimes other corners of the maze appear completely empty). I’m not completely against these mazes, I just think that they are generated too often.

We should maybe adapt the algorithm such that we don’t start with the filling of the chambers but assign the chamber nodes a different priority according to chamber nodes/non-chamber nodes ratio. That way we would at least not fill them up all the time. (rng.sample can take a counts= argument, so this could be easily tested out.)

On top of that, we may want to use an algorithm that leads to less clustering of the food pellets but that’s secondary.

(Maybe we should even have different filling algorithms and every time a different one is selected.)

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions