Teaching coding with turtles

Teaching coding with turtles — using the turtle graphics metaphor to introduce programming concepts — has been one of the most enduring and effective approaches in CS education for over five decades. The turtle graphics model, in which a virtual turtle moves around a canvas drawing lines as it follows code instructions, makes programming concepts like sequences, loops, functions, and angles visually and spatially concrete in a way that text-only output cannot match. codeguppy.com includes a full turtle graphics module in its JavaScript platform, bringing this classic pedagogical tool into a modern, browser-based coding environment.

Teaching coding with turtles works across a wide age and experience range, but is particularly effective for students encountering programming for the first time. The turtle provides an intuitive mental model — you are giving directions to a character that moves and draws — that maps naturally onto the sequential, imperative structure of programming. Students who learn to code by directing the turtle develop strong intuitions about program flow, variable use, and function design that transfer directly to more advanced JavaScript programming.

For CS teachers who use turtle graphics in their introductory programming units, the platform provides a JavaScript turtle graphics environment alongside tutorials, example programs, and coding challenges specifically designed for turtle graphics instruction. Unlike standalone turtle environments, the platform's turtle module is part of a full JavaScript coding environment — students who master turtle graphics can immediately apply their JavaScript knowledge to game development, animations, and other project types without switching platforms or learning new tools.

Explore teaching coding with turtles at codeguppy.com — free tutorials, reference documentation, and example programs that make turtle graphics as productive and engaging today as it was when it was first introduced.

Teaching coding with turtles

A free coding platform for schools

codeguppy.com is a free coding platform for high-school and middle-school students. Teachers around the world are using codeguppy.com to teach JavaScript.

To make coding easy, fun, and engaging for students of all ages, codeguppy.com comes with an online code editor and a graphical oriented runtime based on the p5.js library. The platform enables students to learn JavaScript while building fun games and animations.

Coding projects and activities for students

codeguppy.com comes with tons of coding projects and activities that students can use as a starting point for their projects.

Contact us!

If you want to learn more about the free coding platform, please feel free to contact us at any time. We can discuss how to get started with coding, how to implement codeguppy.com in your coding club ... or even discuss coding questions or share programs.

Browse projects Watch coding lessons Explore downloads