B4Coder

🏏 Cricket Scoreboard · Mission 7 of 8

📊 The Full Scoreboard

The commentators want the run rate: runs per over. And when 10 batters are out, the team is all out: no more scoring.

Your mission

  1. runRate = round(total * 6 / balls, 2), or 0 before any ball is faced.
  2. At 10 wickets, refuse every ball except a fix: ok = false, message = "All out".
  3. Everything from before still works.

Getting the mission ready…