Given n people, you can arrange n(n−1)/2 matches between them. If n is even, you can do n−1 rounds of n/2 matches; if n is odd, n rounds of (n−1)/2 matches. https://en.wikipedia.org/wiki/Round-robin_tournament#Scheduling_algorithm