Computing
The Pattern Stamping Machine
Read six separate stamps in order, then write a shorter program with a repeat instruction. Predict what the machine will stamp when the entire star-and-circle pair repeats.

Read the material
Download PDFA teaching sequence
Use a repeat instruction to replace a block of actions that occurs more than once.
Read Star, Circle three times
Put the cards into three groups of two.
Show the short program
Predict the strip before running it and count how many stamps three repeats of a pair make.
Compare with a program that repeats one stamp or changes the block
Explain which order would match the original strip.
Before you teach
Look for the thinking behind an answer, choose the support your class needs and leave room for an independent response.
What to look for
A pupil identifies the entire star-and-circle pair as the repeated block and explains why three repeats make six stamps.
Give a little support
Draw three outline boxes and put the star-circle pair into each one before reading the full run.
Take the idea further
Offer a new output with a different repeated block and have a partner write the shortest instruction for it.
Things to keep in mind
The machine illustrates a fixed repeat. Pupils can trace the output on paper as well.
Keep the idea. Make it yours.
Bring your topic, learning goal and class context to PLAI™, then review what you create.
Ideas to try with your class
Sample teaching perspectives on what to try, what to adapt and what to watch for.



Steady Marker
Read Star, Circle three times and separate the output into three pairs. Ask which shortest block can be repeated to produce the full sequence.
Step by Step
Start with two physical shape cards so pupils can see the repeating unit. The repeat instruction can then stand for an action pattern they have already traced.
Five More Minutes
Draw three boxes and put a star-circle pair in each. Point to one box for each repeat while reading the complete output together.
Reread Reminder
The machine demonstrates a fixed repeat rather than every kind of loop. Change the output on paper and ask a partner to identify and write its repeated block.