The 'where do you track it' part is what they actually care about.
Clarify that the side-switching state is purely presentational and should be derived from the game count rather than stored as a separate mutable flag. Propose computing the current side from the total number of completed games (odd games = swapped) and expose it via a read-only method or view model, keeping scoring logic untouched.
Pro tip: Emphasize that deriving side from game count avoids state duplication and synchronization bugs, and mention that if you later need to persist or display side, you can compute it on the fly or cache it with a clear invalidation rule.
Recognize that the number of completed games is already tracked for scoring; use that as the single source of truth for side switching.
Compute the current side as a function of the game count: if game count is odd, sides are swapped; otherwise, they are in the original orientation.
Add a method or property (e.g., getCurrentSide()) that returns the side for each player without mutating any state.
Ensure the side-switching logic does not interfere with scoring; it should only affect presentation or display.
Handle tiebreaks or other game-counting nuances if applicable, and note that if side needs to be persisted, you can store it but must update it consistently with game count.
AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.