Turtle

pc-ahead (pc-ahead-one-step)

Description:
Reports the color of the patch one space ahead in the direction that the turtle is facing. If called by the observer, it will assume coordinates of (0,0).

Notes:
if pc-ahead = blue [fd 1] commands the caller to move forward 1 if the patch ahead of it is blue.

Related Commands:
patchcolor pc-ahead-one-patch pc-at pc-towards