3 ms·
Once I tried to implement soccer team balancer. We made skill points to each player (so everybody had a final score) and I wanted to write a small Django applic
by Walkman 9y ago
Once I tried to implement soccer team balancer. We made skill points to each player (so everybody had a final score) and I wanted to write a small Django application which balances the teams the most fair way. It turned out it is a really hard mathematical problem. My stupid brute-force solution ran for minutes for 10 players :D Wish this library has been existed back then!
- pedrosorio 9y agoWouldn't brute force iterate over at most 2^10 = 1024 subsets of players (assuming 2 teams with 0-10 players each)?