Hello,
I need a PHP Class that generates a round robin (all play all once) for Golf foursome games.
Golfers: 8, 12, 16, 20, 24, 28, 32
Events: 2-10
PHP Class must work like:
$golfers = 'Player 1', 'Player 2', 'Player 3', 'Player 4', 'Player 5', 'Player 6', 'Player 7', 'Player 8' ];
$roundRobin = new RoundRobin($golfers);
$rounRobin->events(2);
$roundRobin = $roundRobin->create();
Clean and readable code!