Phase 1.7: Season end, promotion/relegation, and league changes #12

Open
opened 2026-06-07 22:44:05 -06:00 by ppreeper · 0 comments
Owner

Description

When a season ends, teams move between league tiers based on promotion/relegation rules. This involves:

  • Sorting final league tables
  • Determining promoted/relegated teams from PromRel rules
  • Promotion playoff games (if configured)
  • Moving teams between league arrays
  • Updating league stats and season history
  • Generating new season fixtures
  • CPU team player skill adjustments

Key code to port

  • start_new_season() in src/start_end.c
  • league_get_team_movements() in go/code/league.go
  • league_season_start() in go/code/league.go
  • prom_rel elements parsing

Depends On

  • Issue #11 (game loop)

Acceptance Criteria

  • Teams near bottom of table get relegated
  • Teams near top get promoted
  • Promotion playoffs resolve correctly (if configured for the country)
  • New season generates fresh fixtures
  • Player skills adjust based on team performance
## Description When a season ends, teams move between league tiers based on promotion/relegation rules. This involves: - Sorting final league tables - Determining promoted/relegated teams from PromRel rules - Promotion playoff games (if configured) - Moving teams between league arrays - Updating league stats and season history - Generating new season fixtures - CPU team player skill adjustments ## Key code to port - `start_new_season()` in `src/start_end.c` - `league_get_team_movements()` in `go/code/league.go` - `league_season_start()` in `go/code/league.go` - `prom_rel` elements parsing ## Depends On - Issue #11 (game loop) ## Acceptance Criteria - Teams near bottom of table get relegated - Teams near top get promoted - Promotion playoffs resolve correctly (if configured for the country) - New season generates fresh fixtures - Player skills adjust based on team performance
ppreeper added this to the Phase 1 milestone 2026-06-07 22:50:30 -06:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ppreeper/bygfoot#12
No description provided.