edc0 / tournament-maker

0 stars 0 forks source link

Implement a new shuffling mode for equal sum of points #1

Open edc0 opened 3 days ago

edc0 commented 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.

georgeharvey3 commented 3 days ago

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