Open edc0 opened 3 days ago
Teams have to be formed in a way that the sum of scores in each team is a close as possible to each other. For example, two teams could be 100+10+10 and 40+40+40. Probably something to do with a multi-knapsack problem.
I implemented this in my polo shuffler for Bristol Winter League.
https://github.com/georgeharvey3/polo-shuffler/blob/main/src/App.tsx
Lines 95 - 144
Teams have to be formed in a way that the sum of scores in each team is a close as possible to each other. For example, two teams could be 100+10+10 and 40+40+40. Probably something to do with a multi-knapsack problem.