Phase 1.2: Country loading from embedded data #7

Open
opened 2026-06-07 22:43:48 -06:00 by ppreeper · 0 comments
Owner

Description

When a new game starts, the user selects a country (e.g. England, Germany). The country XML file defines leagues, cups, and promotion rules. The Go code has started embedding this as struct data (data_country.go, data_league.go), but the loading pipeline needs to be completed and wired.

Tasks

  • Complete XML-to-struct parsing for country files
  • Populate leagues with their teams, tables, fixtures, and promotion/relegation rules
  • Populate cups with their rounds, choose-team rules, and fixture scheduling
  • Generate initial player rosters for all teams
  • Validate that a loaded country has valid leagues (at minimum one active league)

Depends On

  • Issue #4 (embed game data)

Acceptance Criteria

  • Country selection shows a list of available countries with ratings
  • Selecting a country loads all its leagues, cups, and teams
  • Each team has 20 players with generated stats
  • Fixtures are written for all active leagues
## Description When a new game starts, the user selects a country (e.g. England, Germany). The country XML file defines leagues, cups, and promotion rules. The Go code has started embedding this as struct data (`data_country.go`, `data_league.go`), but the loading pipeline needs to be completed and wired. ## Tasks - [ ] Complete XML-to-struct parsing for country files - [ ] Populate leagues with their teams, tables, fixtures, and promotion/relegation rules - [ ] Populate cups with their rounds, choose-team rules, and fixture scheduling - [ ] Generate initial player rosters for all teams - [ ] Validate that a loaded country has valid leagues (at minimum one active league) ## Depends On - Issue #4 (embed game data) ## Acceptance Criteria - Country selection shows a list of available countries with ratings - Selecting a country loads all its leagues, cups, and teams - Each team has 20 players with generated stats - Fixtures are written for all active leagues
ppreeper added this to the Phase 1 milestone 2026-06-07 22:50:22 -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#7
No description provided.