okay, and what I've provded you with is a function that gives you an array that looks like this
1:2, 1:3, 1:4, 2:3, 2:4, 3:4
let's call that $a
there are four players, so you'll have 2 (or 4/2) games per round and 3 (or 4-1) rounds made up of games
$a[0] and $a[0 + (4-1)]
$a[1] and $a[1 + (4-1)]
$a[2] and $a[2 + (4-1)]
okay, now let's say there are six players, you'll have an array that looks like this:
1:2, 1:3, 1:4, 1:5, 1:6, 2:3, 2:4, 2:5, 2:6, 3:4, 3:5, 3:6, 4:5, 4:6, 5:6
let's call that $b
Now each round has 3 (or 6/2) games per round and 5 (or 6-1) rounds.
It's trivial array manipulation and if you're not at least willing to give it a shot then I"m not willing to help anymore.