Turtle Collisions

& how to borrow code, the smart way

M. Lim
Intro to Programming
2 min readApr 23, 2018

--

→ Lab Assignment: “Get them coins” on repl.it

Euclidean distance formula (distance between 2 points on a coordinate plane)

It’s basically the Pythagorean Theorem:

Try integrating the code above into your program. You’ll need to adjust some things to make it work with your individual program. As you test it, make sure to pay attention to the error messages in the console — they are there to help!

--

--