How do we bridge the gap between Scratch and Python without overwhelming students with syntax? And how do we encourage students to improve their code once it works?
These questions inspired me to develop Turtle Quest, a free interactive programming game featuring 40 challenges that gradually introduce increasingly sophisticated computer science concepts.
Press a button, write Python
Rather than dragging blocks around, students press command buttons to control a turtle. Every button press generates a line of genuine Python code, allowing students to make an immediate connection between an instruction and its syntax.
Students can run their program, step through instructions, identify errors and modify their code. As they progress, they unlock new commands and tackle increasingly challenging puzzles.
The aim is to gradually remove the scaffolding until students are confident enough to write Python independently.
Five worlds of programming
| World | Levels | Key learning |
|---|---|---|
| Turtle Training | 1-8 | Sequencing and debugging |
| The Loop Forest | 9-16 | Count-controlled iteration |
| The Art Academy | 17-24 | Angles, drawing and pen control |
| The Crystal Caves | 25-32 | Nested iteration |
| The Algorithm Kingdom | 33-40 | Functions and decomposition |
Each world builds upon previous knowledge, giving students opportunities to revisit concepts in different contexts.
Giving students a reason to use iteration
One challenge when teaching programming is that students are often perfectly happy with inefficient code, provided it works!
Turtle Quest rewards students with stars based on the number of meaningful lines of code they use to complete a challenge.
For example, a student might initially write seven separate forward instructions. By introducing iteration, that solution becomes:
for i in range(7):
turtle.forward(40)
Seven lines become two. Suddenly, there is a genuine reason to learn about loops.
The game also displays the number of executed Turtle operations. This introduces an important distinction: fewer lines of code do not necessarily mean fewer instructions are executed.
Teaching with PRIMM
Turtle Quest lends itself particularly well to the PRIMM model developed by Sue Sentance and colleagues. Rather than expecting students to write programs from scratch, PRIMM encourages them to understand existing code before creating their own.
| Stage | Classroom activity |
|---|---|
| Predict | Examine the Python code and predict where the turtle will finish. |
| Run | Execute the program and compare the result with the prediction. |
| Investigate | Trace the instructions and explain how the program works. |
| Modify | Change a distance, angle or repetition count and predict the effect. |
| Make | Independently solve a new puzzle using the same programming concepts. |
Teachers can use the supplied reference solutions as starter programs for PRIMM activities, before allowing students to tackle the next challenge independently.
Beyond learning Python
The game supports several fundamental computer science concepts identified in the English national curriculum:
- Abstraction: Representing the turtle through its position, direction and pen state.
- Logic: Reasoning about the behaviour of a sequence of instructions.
- Algorithms: Designing, comparing and improving solutions.
- Data representation: Using numerical values and colours to represent movement and drawings.
- Decomposition: Breaking complex challenges into smaller, manageable tasks.
The activities are particularly suitable for upper KS2 and KS3, supporting progression towards textual programming and modular program design.
There are also natural connections with mathematics, particularly when students investigate angles, regular polygons and geometric patterns.
Assessment beyond the stars
Whilst collecting stars provides motivation, completing a puzzle does not automatically demonstrate understanding.
Some useful questions to ask students include:
- Why did you choose that number of repetitions?
- What would happen if you changed this instruction?
- Which part of your program could be reused?
- Can you achieve the same result with fewer lines?
- How did you identify and correct your mistake?
A short conversation about the code can reveal considerably more about a student’s understanding than their score alone.
Free teacher resources
To support teachers, I have produced a PowerPoint teaching guide covering all 40 levels, curriculum connections, PRIMM activities, differentiation and a suggested lesson plan. The complete Python reference solutions are also available.
Turtle Quest runs in the browser and does not require students to create an account.
Ultimately, I want students to enjoy the process of solving a problem, understanding why their solution works and discovering how to make it better.
Play. Predict. Program. Improve.
