NetLogo - How to show the current coordinates of a turtle

aHaH picture aHaH · Jan 31, 2012 · Viewed 11k times · Source

I have been trying for quite some time to show the current coordinates of a turtle in NetLogo. I'm aware that to show one of the coordinates, I could use:

show [xcor] of turtle 0

or

show [ycor] of turtle 0

But how do I show both coordinates?

Thank you.

Answer

Nicolas Payette picture Nicolas Payette · Jan 31, 2012

You can show [list xcor ycor] of turtle 0.

Or, fancier: show [(word "(" xcor ", " ycor ")")] of turtle 0.