B4Coder

🏏 Cricket Scoreboard · Mission 3 of 8

🎉 Fours and Sixes

The crowd wants to know about the big hits. Count each batter's fours and sixes, and make the scoreboard shout about them.

Your mission

  1. When the runs are 4, add 1 to the striker's fours; when they're 6, add 1 to their sixes.
  2. message: "FOUR!" for a 4, "SIX!" for a 6, and the usual message otherwise.
  3. Keep the total, as before.

Getting the mission ready…