Make fair teams
make_fair_teamsSplit 4 to 30 football players into two fair, balanced teams (or 6 to 30 into three, for winner-stays-on), keepers spread across the teams. Needs no squad and saves nothing: for a Squadcard squad's own game, use pick_teams instead. Two teams return bibs and nonBibs with their average ratings; three return a list of teams. Both include a verdict on how even it is and a message for a group chat. The same list always gives the same teams; pass shuffle for another split.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| teams | No | How many teams: 2 (default) or 3. | |
| players | Yes | Names, or objects with a level and whether they're a keeper. | |
| shuffle | No | 0 (default), 1, 2…: a different fair split of the same players. |