B4Coder

🏏 Cricket Scoreboard · Mission 1 of 8

🏏 Runs for the Batter

Match day! You're the scorer. Each time you press a run button, the flowchart has to find the batter on strike and give them the runs.

Your mission

  1. For Each b in batters: if b.name == ball.striker, add ball.runs to b.runs and 1 to b.balls.
  2. Then message = ball.striker + " scores " + ball.runs.
  3. Press 1, 4 and 6 on the right: the batter's runs and balls go up.

Getting the mission ready…