
Technology • 20 • 20 students • Created with AI following Aligned with New Zealand Curriculum
Free PDF · we'll email you a copy
Coding lesson using the koi bots
Students work in pairs to create, test, and improve a short sequence of instructions for a Koi Bot. They apply computational thinking by breaking a route into steps, predicting the result, debugging errors, and communicating how their solution works.
0–3 min · Hook and learning goal. Teacher displays a simple Koi Bot route and asks, “How could we tell a robot exactly what to do without moving it ourselves?” Open with the robot route hook and learning goal and explain that today students will plan, test, and improve a sequence of commands. Students briefly predict the commands needed and share one idea with a partner.
3–6 min · Model the algorithm. Teacher introduces the available commands—forward, backward, turn left, and turn right—and models how to break a route into small steps, recording key words rather than full sentences on the command examples and worked route. Think aloud: “First I look at the route, then I count spaces, then I choose the turn.” Students use their fingers to trace the route and identify the first three commands.
6–8 min · Plan with a partner. Teacher places students in pairs, assigns roles of Coder and Tester, and distributes the Koi Bot route planning sheet. Explain that partners must agree on a command sequence before touching the robot. Students draw or trace the route, write the commands using arrows or key words, and predict the Koi Bot’s final position.
8–15 min · Code and test. Teacher gives each pair a Koi Bot and a clear floor or table grid, then displays the testing routine on the pair-work instructions and safety reminders: read the plan, enter the commands, test, observe, and stop safely. Students enter their sequence, run the Koi Bot, compare the result with their prediction, and circle the first command that caused an error. Partners swap roles halfway through.
15–18 min · Debug and improve. Teacher asks, “What did the robot do, and what did you want it to do?” Support pairs to remove, replace, or reorder one command at a time rather than changing the whole sequence. Students revise their plan, retest, and record the change on the worksheet. If successful, they make the route more efficient by reducing an unnecessary command.
18–20 min · Share and reflect. Teacher invites two pairs to demonstrate different solutions and uses the debugging discussion and reflection prompt to ask, “How did testing help you improve your code?” Students complete the final worksheet sentence: “Our code worked because…” or “We fixed our code by…”, then return equipment carefully.
Join thousands of teachers using Kuraplan AI to create personalized lesson plans that align with Aligned with New Zealand Curriculum in minutes, not hours.
Created with Kuraplan AI
Generated using openai/gpt-5.6-luna
🌟 Trusted by 1000+ Schools
Join educators across New Zealand