Worksheet: write the robot program that reaches the star
views prints
The first time the child writes an algorithm alone. The routes are short and the walls few, so the focus is on writing clear commands in order.
29 ready sheets in 3 packs of 10, each with its answer key. Pick a sheet or print a whole pack from the panel below.
Loading the worksheet…
About this sheet
- Skill
- Write the robot program (Puzzles and activities)
- Suggested age
- Ages 6–9
- Difficulty
- Easy
- Answer key
- Yes, on its own page, made with every new version
- Paper
- A4 or Letter, black and white or colour
Age and grade are a guide, not an official curriculum match. How we make and check our sheets
Remind the child of the four arrows and how to write a repeat, such as → ×2. The program goes line by line in the empty boxes next to the grid.
Ask them to draw the route lightly in pencil on the grid first and only then turn it into commands. Planning first and writing second is exactly how programmers work.
When it is written, they run their own program with a finger, as a robot that does not know where the star is. If it misses, they find and fix the step themselves.
The last question, the fewest squares, shows that many programs can be right but some are shorter and better. The answer page shows one short program out of several possible ones.
If the child writes a different program of the same length, it is fully correct, and that makes a nice talk about problems with more than one solution.
Is there only one answer?
There may be several shortest programs of the same length, and all are right. The key shows one of them.
How do I mark it quickly?
Check the number of squares first, then run the child's program on the grid and see that it reaches the star without crossing a wall.
What age is it for?
From the end of grade 1 to grade 3.
Found a mistake on this sheet? Tell us
Worksheets
Robot program around the walls1 ready sheet6 by 6 grids with many walls that block the straight route, so the child has to plan a detour and find the shortest program.
Animals word search13 ready sheetsPrintable animals word search: 10 words in a 12 by 12 grid at the easy level, with a solution page.
Countries word search (hard)40 ready sheetsCountries word search: Egypt, Japan, Brazil and more in a 16 by 16 grid in every direction, with the solution.
Jobs word search (medium)15 ready sheetsJobs word search: doctor, pilot, engineer and more in a 14 by 14 grid, across, down and diagonal, with the solution.
Sports word search (easy)4 ready sheetsSports word search: swimming, tennis, chess and more in a 12 by 12 grid, across and down only, with the solution.
Fruits and vegetables word search12 ready sheetsPrintable fruits and vegetables word search: 10 food words in a 12 by 12 grid, easy level, with a solution page.
Colors word search4 ready sheetsPrintable colors word search: 8 color words in a small 10 by 10 grid, easy level, with a solution page to check.
School word search16 ready sheetsPrintable school word search: 12 classroom words in a 14 by 14 grid, medium level with diagonals, plus a solution page.
Signature experiences
Related worksheet generators
- Debug the algorithmDebugging worksheets: a program that should reach the star has one wrong step. The child finds it and fixes it. Answer…
- Robot grid codingUnplugged coding worksheets: a robot on a grid and a list of arrow commands. The child runs the program and writes the…
- If / else rulesConditional logic worksheets: an if / else rule and a row of numbers. The child applies the rule to each number and…
- Detective Files: one-page escape casePrintable escape puzzles: a number lock solved with logic clues, a letter grid and a coded note. Each answer opens the…