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 a lobby algorithm that finds the fairest teams #2853
Comments
get all the combinations of the two teams, compute the geometric mean of both teams, then take minimize the difference. |
hello thanks for posting on this repository. I advice you to make a PR for this change. I will then be able to test it, and get someone to review it. If it works well, i will then merge the PR. |
As i am new to lua there are a few things that i am unsure on. This idea was comparing the player true score values, however now i know that Trueskill.computeQuality(teams) can be used. Will see what I can come up with. Also this would be only for 2 teams |
pull request #2887 |
Should this be closed? |
has this been implemented? |
closing Issue Based on PR for this issue has been closed in favor of a different PR |
Hi all this is regarding my post here
https://forums.faforever.com/viewtopic.php?f=42&t=16989
Not sure if i should have made a draft pull request, new to this.
So my idea is to create an algorithm that finds the fairest teams while in the lobby. Once the script is done it moves the players to the fairest teams (in lobby) from there the players can decide what positions to play for that map or make adjustments.
I have never coded in lua and will need some help to get this to work
i wrote some as3 for testing, the output is
Team 1
1211
1000
985
699
Team 2
999
980
970
950
Difference of 4
//AS3--------------------
/*
Fairest Team finder
Loads all the players true skill in an array
Goes through every combination and compares the difference
The fairest team is the one which has the lowest difference of trueskill between the two teams
Note players may still need to pick what spots that want to play on their team, e.g air, navy etc
Only supports 2 teams
*/
I used each players true skill to check for the fairest teams, however Trueskill.computeQuality(teams) seems to be a way to check for quality, not sure if that works for more than 2 teams
Here is my current lua code so far
There are a few things that need to be to considered
Well there is my idea so far, not a perfect solution but it may help players to get a ballpark balance and go from there
The text was updated successfully, but these errors were encountered: