Applying their programming knowledge to create a game challenge
Apply their understanding of repetition and selection to create their own scenario using the repeat until and if… do... statement blocks
Be able to set a challenge for a friend e.g. work out the shortest route to the destination, but make sure you do not go through a red light
Explain that the students are going to:
Make their own story for a partner involving characters, objects and creating a background
Choose their starting point
Choose a character (robot, van, boy, girl, wolf or monster)
Design a layout with route tiles (road, path), background tiles (trees, grass, pond, snow), variable objects — traffic lights
Discuss what would make a good challenge; draw up a simple evaluation sheet to evaluate each other’s challenge. For ideas, there is an example of an evaluation sheet on resource sheet 1.
What will make the challenge interesting for your partner?
How would you create a route which would need your partner to use a repeat loop?
Ask the students to sketch out their map on resource sheet 2 [fig S7.1].
They will choose a character to move around the route and places to deliver to along the route.
Create the route and the background, save this to their Rapid Router account, using a filename they will remember.
Explain to the students that they need to work out the algorithm needed to complete the challenge, and then test out the code to do this.
Resources | Vocabulary |
---|---|
• Resource sheets 1 (for reference) and 2
• Video: ‘Mahana explains repeat functions’
• Repetition, selection
• Create, design
• Evaluate, check, debug
Name:
Class:
Success criteria | Yes/No | Comments |
---|---|---|
Is the design fun and appealing?
Are there different characters and buildings to visit?
Is the task set in the challenge interesting?
Is the route challenging?
Could you use a repeat loop to solve it?
Could you use a repeat until at destination loop to solve it?
Do you have to use if... do... statements?
Could you use else if statements?
Does it use variables (such as traffic lights)?