🏏 Cricket Scoreboard · Mission 8 of 8
📶 Runs per Over
TV shows a bar for each over: how many runs it went for. The app keeps overRuns for you: a list with a number for each over, the last one still going. Fill it in, and watch the chart grow.
Your mission
- Each ball's runs go on the last over: Change a List, set item length(overRuns) to overRuns[length(overRuns)] + the runs (a wide or no ball is 1).
- After a ball that's faced, if balls % 6 == 0, the over is done: add 0 to overRuns for the next one.
- Everything from before still works.
Getting the mission ready…