Frog code
Code the frog past the rocks to the lily pad. A coding game for the whole class.
How to play
- Pick a level. The frog needs to reach the lily pad without hopping onto a rock or off the edge.
- Pupils plan the route, then tap the arrows to build the code one step at a time.
- Press Run and watch the frog follow the code. If it bumps into something, the step that went wrong lights up red.
- Fix the code and try again. Collect the flies for a bonus.
Ideas for lessons
- Predict first. Before pressing Run, ask the class where they think the frog will end up.
- Debug it. Put in a code with one mistake and ask pupils to find and fix it.
- Turns are harder. Switch to turn commands so pupils have to think about which way the frog is facing.
- Make a level for a partner, or recreate a map from your topic.
- Keys: arrow keys add steps, Backspace removes one, Enter runs.
Questions teachers ask
What age is it for?
Arrow commands (up, down, left, right) suit Key Stage 1 and lower Key Stage 2. Turn commands (hop forward, turn left, turn right) are harder because pupils have to think from the frog's point of view, which suits older pupils.
What does it teach?
Algorithms and debugging from the computing curriculum: planning a sequence of instructions, predicting what it will do, testing it and fixing the step that went wrong.
Can I make my own levels?
Yes. Open Make a level in the settings, choose a size, then tap squares to place the frog, the lily pad, rocks and flies. Save it and it appears in the level list on this device.
What are the flies for?
They're a bonus. The level is complete when the frog reaches the lily pad, but you can challenge the class to collect every fly on the way.