A small script that uses pymoo to create balanced teams.
Make sure you have Python 3.10 or higher installed.
Then run:
pip install -r requirements.txt
The base usage is
python3 main.py [-h] [-p PLAYERS [PLAYERS ...]] -tc TEAM_COUNT
Players are denoted via Playername-Skill separated via spaces, e.g. Bob-4 Melinda-5.
The skill level is not set to any specific range, it usually suffices to use a range from 1-3 or 1-5, depending on your use case. Floating numbers are also possible.
Specify how many teams you would like to generate via the -tc option.
Example usage
python3 .\main.py -p Anna-3 Bob-4 Joe-5 Melinda-2 Kevin-1 -tc 2