Phase 1.3: Complete league setup and team generation #8

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

Description

Need to complete and test the league fixture generation and team player generation. The C code has fixture_write_league_fixtures and team_generate_players_stadium. The Go versions exist but need cleanup and testing.

Tasks

  • Clean up team_generate_players_stadium (in go/code/team.go)
  • Clean up fixture_write_league_fixtures (in go/code/fixture.go)
  • Clean up player_new (in go/code/player.go or go/player.go)
  • Test that round-robin fixture generation produces correct number of matchdays
  • Test players have valid skill/fitness/age distributions
  • Test stadium capacity and safety are reasonable

Depends On

  • Issue #2 (module layout)

Acceptance Criteria

  • League with 20 teams generates 38 matchdays (2 round-robins)
  • Each team has 20 players, correctly positioned per formation
  • Player ages, skills, and talents follow specified distributions
  • Fixtures are sorted by week and week_round
## Description Need to complete and test the league fixture generation and team player generation. The C code has `fixture_write_league_fixtures` and `team_generate_players_stadium`. The Go versions exist but need cleanup and testing. ## Tasks - [ ] Clean up `team_generate_players_stadium` (in `go/code/team.go`) - [ ] Clean up `fixture_write_league_fixtures` (in `go/code/fixture.go`) - [ ] Clean up `player_new` (in `go/code/player.go` or `go/player.go`) - [ ] Test that round-robin fixture generation produces correct number of matchdays - [ ] Test players have valid skill/fitness/age distributions - [ ] Test stadium capacity and safety are reasonable ## Depends On - Issue #2 (module layout) ## Acceptance Criteria - League with 20 teams generates 38 matchdays (2 round-robins) - Each team has 20 players, correctly positioned per formation - Player ages, skills, and talents follow specified distributions - Fixtures are sorted by week and week_round
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#8
No description provided.