Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve RNG for infinite mode #180

Open
Gvinfinity opened this issue Apr 7, 2024 · 2 comments
Open

Improve RNG for infinite mode #180

Gvinfinity opened this issue Apr 7, 2024 · 2 comments
Labels
Enhancement New feature or request

Comments

@Gvinfinity
Copy link
Collaborator

Currently the RNG makes it possible for the same game to appear multiple times in a row, shuffling a vector with all the games should improve this.

@Gvinfinity Gvinfinity added the Enhancement New feature or request label Apr 7, 2024
@moraguma
Copy link
Owner

@Gvinfinity Quick correction, so long as there is more than one minigame selected, the selection algorithm will never play the same minigame twice. It can, however, play minigame A, minigame B and then go back to minigame A, but that's just kind of the nature of randomness.

I think there's room to create a selection algorithm that feels more random. Maybe a minigame weight system that determines the chance of each minigame being selected, with each weight increasing the longer a minigame is not selected?

@IsaelGabriel
Copy link
Collaborator

I think the RNG algorithm choice depends on the objective the game tries to accomplish. Should it be allowed to present a minigame more than 3 times in an interval of 7 minigames? Or should it only show a minigame after all the others have appeared? You could make a cooldown for games even.

Does the decision of the algorithm depends on a collective decision or an individual decision by its dev?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants