我们是一群定期打地板球的人。每节课都是从划分团队的艰巨任务开始的。
那么,有什么比自动选择团队更好的选择呢?
因此,鉴于团队组合和结果的历史记录,以及参加此特定会议的人员列表,找到最佳团队的最佳策略是什么?最佳来说,我指的是尽可能多的团队。
有任何想法吗?
编辑:为了清楚起见,我必须根据其选择的数据将是这样的:
[{ team1: ["playerA", "playerB", "playerC"],
team2: ["playerD", "playerE", "playerF"],
goals_team1: 10,
goals_team2: 8
},
{ team1: ["playerD", "playerB", "playerC"],
team2: ["playerA", "playerE", "playerG"],
goals_team1: 2,
goals_team2: 5
},
{ team1: ["playerD", "playerB", "playerF"],
team2: ["playerA", "playerE", "playerC"],
goals_team1: 4,
goals_team2: 2
}]