Concept: Turtle Position

Turtles don't really move from patch to patch. They actually move on a real number grid, and Starlogo approximates where they are by displaying them on the patch they are "in". For example, if a turtle is actually at position (1.5,1.5) it will be displayed at patch position (2,2).

Checking and Resetting Turtle Position

We've already seen that you can reset a turtle position with the forward command. In addition, you can check a turtle position with the properties xcor and ycor, and use setx, sety, and setxy to reset these positions.

Note: The Wonderful Turtle Monitor!

Don't leave home without this facility. You can monitor the change in the properties of a particular turtle by double clicking on it and bringing up a turtle monitor window. Try doing this first, then monitor the change in turtle position while you explore.

Explorations