You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using
Generate a random home-away schedule where each player meets every other player twice, once at home and once away, using the $rounds integer parameter:
Lets create schedule for 12 teams and if we have season split up on 2 half's ( 11 rounds on first half, and 11 rounds on second half). One team on first half should have 5 or 6 matches where it plays at home, but it happens that one team has 7 matches on first half and 4 matches on second half.
Could you please take a look and possibly try to fix this
The text was updated successfully, but these errors were encountered:
The home-away algorithm used in this library is a simple heuristic algorithm that can produce unbalanced home-away schedules. While I personally do not plan on expanding upon the current algorithm or replacing it with a new algorithm, I am open to discussion of potential alternate solutions or to contributions that create more balanced home-away schedules.
I'm using
Generate a random home-away schedule where each player meets every other player twice, once at home and once away, using the $rounds integer parameter:
$teams = ['The 1st', '2 Good', 'We 3', '4ward'];
$rounds = (($count = count($teams)) % 2 === 0 ? $count - 1 : $count) * 2;
$schedule = schedule($teams, $rounds);
Lets create schedule for 12 teams and if we have season split up on 2 half's ( 11 rounds on first half, and 11 rounds on second half). One team on first half should have 5 or 6 matches where it plays at home, but it happens that one team has 7 matches on first half and 4 matches on second half.
Could you please take a look and possibly try to fix this
The text was updated successfully, but these errors were encountered: