Modern: fixture table per league size, league dates and finished leagues (M2)
- schedule: kLeagueTablesPerLeague lets every league use the table of its own size (international leagues of 20 and 18 side by side); Classic leaves it off. - Modern: a league that has played all its rounds sits out the remaining dates of its calendar group. - modern/game/world_calendar: season days of ISO dates and placing a league group's dates in the season calendar around special days, with tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f2fcb28f65
commit
a4a37f1cb2
10 files changed
+189
-6
No files matched your search
@@ -562,6 +562,9 @@ std::vector<MatchGroup> setup_matchday(ModernState& g, uint32_t competitions, co
|
||||
for (int k = from; k < to; k++) {
|
||||
// FixturesFromGenerateFixtures(k)
|
||||
for (int league = kGroupLeague[k]; league < kGroupLeague[k] + kGroupLeagues[k]; league++) {
|
||||
// Modern: leagues of different sizes share a calendar group; a league whose rounds
|
||||
// are all played sits out the remaining dates of the group (docs/new_engine).
|
||||
if (g.league_rounds.at(size_t(league)) >= league_matchdays(league)) continue;
|
||||
turn_step = "setup: winter postponements";
|
||||
winter_postponements(g, ctx.season_day, league, game, rand);
|
||||
const int round = g.league_rounds.at(size_t(league));
|
||||
|
||||
Reference in new issue
Block a user