Skip to content

Instantly share code, notes, and snippets.

@ProgDan
Created June 12, 2020 13:33
Show Gist options
  • Save ProgDan/e7b5a3cbd1ab7c8845c9ed603ae743ca to your computer and use it in GitHub Desktop.
Save ProgDan/e7b5a3cbd1ab7c8845c9ed603ae743ca to your computer and use it in GitHub Desktop.
# Verifica se houve colisão
if head.xcor() > 290 or head.xcor() < -290 or head.ycor() > 290 or head.ycor() < -290:
time.sleep(1)
head.goto(0, 0)
head.direction = "stop"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment