Below, you’ll see exactly what everyone expects to see on a typical day: a turtle on a chessboard (or a grid of patches) with some lava on it. Your goal? Guide the turtle to the safety of the violet (yes, that’s violet not “purple”) patch.

At the top of the board is a RESET button. Every time you click this button, the board will be randomly regenerated, placing the turtle, lava, and violet goal in random new locations.

At the bottom of the board you should see three buttons:

  • TURN LEFT
  • FORWARD
  • TURN RIGHT

These are the only commands that exist in your world here. Each time you click one of the buttons, the turtle executes the command. Try using those buttons to guide the turtle to the goal.

In this simulation, you only had three commands. In other words, the computer only understood these three actions of turning left, turning right, and going forward. But say we wanted the turtle to go backwards one square. Is there any way we could combine these three commands into a BACKWARDS command?

Next turtle activity…