First, familiarise yourself with the terms Pattern Recognition and Decomposition, by watching Part 5 of “Delve in, for twelve min!” (Video linked above).
Give the children the ‘Pattern Recognition’ scratch project. Children have to find different ways to reduce the amount of code that is repeated.
I’ve included 3 different solutions;
- Broadcast (Not always the best solution, please see Part 6 of “Delve in, for twelve min!” on ‘concurrency and dependency’ )
- Make a Block function (more advanced when you include number input)
- Using Make a block, selection and repetition (You can see how much smoother the code runs straight away)
Please let me know how you get on!