Generate a single schedule

generate_schedule(
  league_size = .get_league_size(),
  seed = NULL,
  seed_init = NULL,
  retries = league_size^3,
  retries_init = retries
)

Arguments

league_size

Number of teams in the league. Can be set globally in the options. See ffsched.league_size.

seed

Seed to use

seed_init

Initial seed to use, passed to the non-exported .initialize() function.

retries

Number of retries for a single schedule

retries_init

Initial number of retries, passed to the non-exported .initialize() function.

Details

Iterate by week and team, always checking for other matched teams in the same week and previously played teams in prior weeks