GamutoWare icon indicating copy to clipboard operation
GamutoWare copied to clipboard

Improve RNG for infinite mode

Open Gvinfinity opened this issue 1 year ago • 2 comments

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 avatar Apr 07 '24 16:04 Gvinfinity

@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?

moraguma avatar Apr 14 '24 20:04 moraguma

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?

grandeisa avatar Apr 15 '24 04:04 grandeisa