-
Notifications
You must be signed in to change notification settings - Fork 54
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
Add captain diff penalty to respect avoids #509
Add captain diff penalty to respect avoids #509
Conversation
fa107a6
to
b38382a
Compare
Seeing that the result is the same, what is the reason for using captain penalty over st. dev. penalty? I think st. dev. penalty should have the added benefit of reducing the difference in ratings between players in the same team. This approach would lead to better quality team games. Currently all top players on a team can stack on one side of the map resulting in the other side of the map having all the weakest players in that team. |
My main concern is that stdev can still put the top two players on the same team (as it did when using stdev importance of 1). But what if I add to this PR stdev diff for brute_force.ex ? Then we can test both at the same time and then choose which has the least complaints. So basically we have |
That is solved by using importance of 2 or maybe going even higher.
I don't think number of complaints is a reliable metric. With |
ok I agree with that. I'll add stdev diff penalty in this PR so we can check both. |
Fix new player in parties
b132ef8
to
f24fb5d
Compare
f24fb5d
to
556a76b
Compare
Added stdev penalty with importance of 4 to split_noobs and brute_force Also one test failing that is unrelated: |
In the image below the two best players DmE and Jeff are on the same team. If we add a captain rating diff penalty then they will be split
Here is the new result:
Note that this is the exact same result if we use a stdev penalty with importance of 2:
See this PR for using stdev diff penalty instead:
#508
We can still use stdev penalty in brute_force.ex (called by split_noobs) if we want.
More details
The score will have a new component captain diff penalty which is simply the rating difference between both teams' captains. If both captains have similar rating, this score will be lower which is preferred.
Fix for new players in parties
In addition, while doing this PR I noticed a bug in respect_avoids
Normally newish players are not part of the brute force since we want to draft and spread them evenly across teams after the brute force. However, if a newish player is in a party, we do want them to be part of the brute force calculation to try and get them together with their party.