Design a cricket information system. Matches are played between teams, scorers record every ball, and fans see a live scoreboard, commentary and player statistics.
It must
- A tournament has matches between two teams of 11 players.
- A match has innings; each innings is a series of overs of 6 balls.
- A scorer records each ball: runs, extras, wicket, who bowled and faced.
- The scoreboard (runs, wickets, overs) is derived from the balls.
- Fans see live scores and commentary, and player stats.
Keep in mind
- The scoreboard must always equal the sum of recorded balls.
- A ball can be corrected by the scorer, and every view must update.
- Video, betting and fantasy points are out of scope.