Which method are we supposed to use for switching turtle positions?


Flag Post

ajex

asked
2

Which method are we supposed to use for switching turtle positions?

4 Answers


[{"insert":"Hey Alex,\n\nI think the documentation provided with the turtle lab is for a slightly different version of the Turtle class. I believe this documentation has the updated methods: https://www2.cs.duke.edu/courses/fall06/cps001/doc/mediaClasses/SimpleTurtle.html.\n\nYou should be able to use the moveTo function to move your turtle object to the specified x and y coordinate.\nFor example:\nbilly.moveTo(100, 200)"},{"attributes":{"code-block":true},"insert":"\n"},{"insert":"\nWhenever calling a method of an object, you only need to provide the name of the object. Java knows that billy is using the Turtle class when you initialize it, so you only need to say billy.moveTo(100, 200);\n"}]

[{"insert":"Have you searched on google to see if turtles actually move?\nSee, the truth is, turtles don't move, move do turtle.\n"}]

[{"insert":"The Pancakes know the way. Gimme dem and I shall give you da way\n"}]

[{"insert":"Still no pancakes bro... where they at\n"}]

Your Answer


Feedback