, $last_team);
if ($even) {
array_push($teamarray, $last_team_save);
}
Hope this helps anyone else who needs it.
Chad
-Original Message-
From: Chad Day [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 30, 2002 2:03 PM
To: php general
Subject: RE: [PHP] Round robin
Ok, after some more fiddling, I'm really close to getting this to work.
The script seems to correctly generate a schedule if an odd number of teams
are specified:
Given an array of 5 teams, A through E, the following pairs are generated:
Round 1 - A/E, B/D
Round 2 - D/E, A/C
Round 3 - C/D, B/E
R
2 matches
Mail list logo