Session 7
Applying their programming knowledge to create a game challenge
Objectives
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
Resources | Vocabulary |
---|---|
• Resource sheets 1 (for reference) and 2 • Video: ‘Mahana explains repeat functions’ | • Repetition, selection • Create, design • Evaluate, check, debug |
Let's get started
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?
Practical individual activity
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.
Last updated