Skip to content

Instantly share code, notes, and snippets.

@ProgDan
Last active June 12, 2020 19:27
Show Gist options
  • Save ProgDan/7a40d049b42da53a82acbf777e681f90 to your computer and use it in GitHub Desktop.
Save ProgDan/7a40d049b42da53a82acbf777e681f90 to your computer and use it in GitHub Desktop.
# Move o segmento 0 para a posição onde está a cabeça
if len(segments) > 0:
x = head.xcor()
y = head.ycor()
segments[0].goto(x, y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment