Phase 1.6: Game loop — week/week_round progression #11

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

Description

The game progresses in steps: weeks contain week-rounds (matchdays). Each week-round, teams play their scheduled fixtures. Between week-rounds, finances update, counters tick, player fitness regenerates, CPU teams adjust.

Functions to implement (from src/start_end.c)

  • start_week() — weekly updates (finances, counters, player aging, training, YA)
  • start_week_round() — pre-match preparations
  • end_week_round() — play matches, update tables
  • end_week_round_results() — display results
  • end_week_round_update_fixtures() — cup fixture updates
  • query_start_end_season_end() — check if season over
  • start_new_season() — promotion/relegation, reset tables

Depends On

  • Issue #6 (GameState)
  • Issue #9 (User creation)
  • Issue #10 (Live game)

Acceptance Criteria

  • Week progresses: start_week → start_week_round → play_matches → end_week_round
  • League table updates correctly after matches
  • Season ends and a new season begins (basic loop)
## Description The game progresses in steps: weeks contain week-rounds (matchdays). Each week-round, teams play their scheduled fixtures. Between week-rounds, finances update, counters tick, player fitness regenerates, CPU teams adjust. ## Functions to implement (from `src/start_end.c`) - `start_week()` — weekly updates (finances, counters, player aging, training, YA) - `start_week_round()` — pre-match preparations - `end_week_round()` — play matches, update tables - `end_week_round_results()` — display results - `end_week_round_update_fixtures()` — cup fixture updates - `query_start_end_season_end()` — check if season over - `start_new_season()` — promotion/relegation, reset tables ## Depends On - Issue #6 (GameState) - Issue #9 (User creation) - Issue #10 (Live game) ## Acceptance Criteria - Week progresses: `start_week → start_week_round → play_matches → end_week_round` - League table updates correctly after matches - Season ends and a new season begins (basic loop)
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#11
No description provided.