There are only 4.29 billion possible values of an int32, so even if you used 2 lines for each case, it’d still be under 10 billion lines of code
bool isOdd(int num) {
if (num == 1)
{ return true; }
if (num == 2)
{ return false; }
if (num == 3)
{ return true; }
…
}
Different perspective here:
I don’t really get why people want to leave lopsided casual matches in the first place. You either get to chill out against easier opponents or get better by playing against stronger opponents. At the end of the day, winning or losing doesn’t matter because, well it’s casual. If you wanted a balanced match every game where everyone is trying their best to win, then you should be playing ranked.
What annoyed me with the old system was when my team would go down 1 point, the teammate insta-leaves and then I get a bot or some unfortunate guy who joins into this match midway through.
The people leaving seemed to care more about winning than the match being lopsided; It was really rare to see someone from the winning team leave. And I know thats a common perspective to have, but for me personally, I like playing matches for more than 1 point. I think comeback games shouldn’t only happen in ranked.
With the changes, the casual playlist has improved in some ways and worsened in others. It is way more likely to get a team that sticks around for the full match, but the mode is more competitive now, which is not what it’s supposed to be like.
I think there was probably a better solution to the problem. The issue seems to occur when one player wants to leave, but the other wants to continue. An idea I had to reduce the chance of this happening was matching together the players who tend to abandon and matching together the players who tend to play out matches.