pseudobeard / teambalancer

GNU General Public License v3.0
0 stars 1 forks source link

More than 2 teams #9

Closed matt-winfield closed 7 years ago

matt-winfield commented 7 years ago

Changes allow more than 2 teams to be generated from the balancer. Currently only supported in standalone version (Bot not supported yet), new method added to balancer.py to be used with the bot in the future.

Partition method now returns a list of teams and a list of sums, which can be iterated through to output teams. The index of a team within the teams array is the same as the index of their sum in the sums array.

Added extra spacing between different weighting types, as it was hard to read previously when displaying more than 2 teams.

pseudobeard commented 7 years ago

Looks good! I will integrate the changes into the bot