I am organizing a badminton tournament and need to make a proper tournament setup.
Needs:
- Names must be taken as input. An odd number of players is fine.
- The program organizes the players in teams of two for each match. The teams are changed every match, so player A is teamed with player B in match 1, but in match 2, player A is teamed with player H for instance.
- Number of group games must be taken as input
- After group games, players are ranked individually by the number of victories
- 8 teams (16 best players after group games) are set up to play quarter final, semifinal, final, different team-up as before. If the player loses a game now, the player is out of the tournament

Anyone have a template for this or somewhere to start?