Map voting RNG logic

How does it work exactly? Is it literally index += number, because if so, I’m going to be mad.

I believe CS has it actually randomly cycle in a non-linear fashion.

It simply chooses the second most popular option regardless of voting numbers.

Each vote is worth 1 point, then it does an RNG role based on those points. For example in 5v5 there is a total of 10 votes so each is worth 10%. If 7 people vote for map A then that map has a 70% chance of being chosen.

3 Likes

I get that, it’s not a difficult concept. My question is about the RNG algorithm.

I have reasons to believe the RNG system is a bit too predictable because of how it starts somewhere and then cycles X steps.

Well “somewhere” sounds more random than jumps x times then stops.
Also, I’ve seen the thing slow down differently sometimes. So I don’t think x is consistent.

1 Like

It’s basically like if each vote gets assigned to a dice. So if there’s 12 votes it’s a 12 sided dice. If only 9 people vote it’s a 9 sided dice. They roll the dice and whatever side it lands on that vote wins.

So votes give a map better odds but only a guarantee if the vote is unanimous.

That’s not the point. I’m saying the RNG algorithm is not good.

There’s been many cases where companies changed the algorithm because customers didn’t like the randomness. One example is Spotify Shuffle. One could argue “true randomness” is not always good, which in the case of map voting seems to apply because I’ve had too many games where 1 person votes for an annoying map and gets it.

Hmm… well i doubt youll ever get a clear answer on that one. But nearly every code language has a built in rand() function so id imagine they just used that rather than reinventing the wheel but not sure what language they are using to check the digest. Regardless tho it seems like it would be irrelevant. Even if it cycles linearly the map orders are randomized so the starting point would be changing. Id be shocked to find any forced pattern.

The animation doesnt necessarily have anything to do with it, the map may be chosen by some rng algorithm in the background and then the animation just runs to fit it.

Spotify problem was because people got “streaks” more often than they liked, which, in randomness happens more often than most people would believe.

Keep in mind only 1 map available for selection is chosen randomly, the 2 others are based on which have been played least recently by players in the lobby.

I remember the first day. Playing a push map. I remeber being shocked it won because how many people say they don’t like it, but it had majority, and won.

Then next match, all 3 maps were push lmao
Someone left before even locking a vote. Because new things are bad or whatever logic.

The next game had no push choices.

I’m saying recent plays doesn’t do much. If anything.
(And now that I think about played Havana twice in a row yesterday.)

It may be weighed across all players in the lobby. e.g. if one player has played one recently but 9 havent, then you get that etc. Iirc Gavin referred to it as “map score” or something.

It explains well the situations where all the vote options are “bad maps” here and there as naturally those are getting played less and less.

Anyway they probably should check for the situations where all 3 maps are same game mode, and some other edge cases.