GoalTurn an algorithm written in steps into blocks, and read the numbers on turn blocks.
New words
plan · to work out what to do before you startblock · one piece of a program that does one jobquarter turn · a quarter of a whole turn; in ScratchJr the number 3
Explanation
First we plan. We write the algorithm as numbered steps. Then we change each step into a block. The first step is a start block and the last step is the end block. A turn block has a number. In ScratchJr, 3 is a quarter turn, 6 is half a turn and 12 is a whole turn. Then we run the program and see if it does what we planned.
Step
Instruction
1
Start on green flag
2
Right 3
3
Hop 2
4
Say “Yay!”
5
End
Worked examples
The blocks for the algorithm above. Each step has one block.
Two quarter turns make a half turn. The character turns right 3 and then right 3 again. Then it says Wow!.
Number
How much it turns
3
a quarter turn
6
half a turn
9
three quarters of a turn
12
a whole turn, back to the start
The numbers on a turn block.
Class activity
Plan and act: write a 5-step algorithm on paper for a robot show, for example: 1 Start on clap. 2 Take 3 steps right. 3 Hop 2 times. 4 Say “Hello”. 5 End. Act it out. Then draw one block card for each step: a flag, an arrow with 3 under it, and so on. Give your cards to a friend. Can your friend act out your program in the right order? (If you have a tablet with ScratchJr and an adult to help: build the blocks and run them.)
Practice
1
Write the algorithm for this program as numbered steps.
1 Start on tap. 2 Left 3. 3 Shrink 1. 4 Play a pop sound. 5 End.
2
A character does turn right 6. How much of a whole turn is that?
Half a turn, because 6 is half of 12.
3
Draw the two missing blocks. Algorithm: 1 Start on green flag. 2 Left 4. 3 Say “Hi!”. 4 End.
Left 4 and Say “Hi!”.
4
The character moves right 3 and then right 2. How many squares does it move in all?