开发者

Creating teams based on two groups

开发者 https://www.devze.com 2023-02-25 12:34 出处:网络
I\'m quite new to Python, and I have a problem t开发者_StackOverflow中文版hat I would like to solve (elegantly). I\'m going to create teams for soccer matches this coming season. We have 24 players an

I'm quite new to Python, and I have a problem t开发者_StackOverflow中文版hat I would like to solve (elegantly). I'm going to create teams for soccer matches this coming season. We have 24 players and would like to put them in two groups, 12 in each, based on skills. For each match, we want to select 8 players, 4 from each group. Ideally, everyone gets to play the same number of matches over the whole season. Does anyone know a simple way to do this? Thanks in advance for your help.


Sort by skill, pick from the top for alternating groups. Just like back in high school.

0

精彩评论

暂无评论...
验证码 换一张
取 消