I have been stuck with this issue for three days now. Im coding an league system for some gamers. What I want is dynamic generation of term lists for the seasons based on these criteria:
- All clans have to play every round.
- No clan can play two games in one round.
- Every clan should play one (and only one) game against every other.
- The number of clans can vary (10, 12, 14, ..., 20, ...)
The programming is not the most difficult thing, but the algorithm is killing me! The only solution I have been able to come up with involves some qualified guessing and bruteforce..
Can someone point me in the right direction? Is there a known algorithm for this?