🏏 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
- For Each b in batters: if b.name == ball.striker, add ball.runs to b.runs and 1 to b.balls.
- Then message = ball.striker + " scores " + ball.runs.
- Press 1, 4 and 6 on the right: the batter's runs and balls go up.
Getting the mission ready…