# Turtle Colision

I am making a game using the turtle module, and want to detect colision betwen the original and the clone.I have tried saving the position of the clone, and then checking if the original has the same position, but the turtle only detects the clone if it has the exacly same position. Is there another way to detect colisions?

``````  import turtle
import time
import random
points = 0
t = turtle.Turtle()
sc = turtle.Screen()
turtle.bgcolor("black")
t.turtlesize(3)
c = t.clone()
c.goto(200, 200)
c.color("red")
c.turtlesize(1)
t.color("blue")
def turnleft():
t.left(90)
def turnright():
t.right(90)

while True:
t.forward(10)
time.sleep(0.1)
sc.onkey(turnleft, "Left")
sc.onkey(turnright, "Right")
sc.listen()
# here is the no so working collision detector
if t.pos() == (200, 200):
points = (points + 1)

``````

### >Solution :

To detect collisions between turtles in the turtle module, you can use the distance method to calculate the distance between the turtles. If the distance between the turtles is less than the sum of their radii, then they are considered to be colliding.

Check this:

``````import turtle

# create the original turtle
original = turtle.Turtle()

# create the clone turtle
clone = original.clone()

# move the clone turtle to a new position
clone.setpos(50, 50)

# calculate the distance between the original and clone turtles
distance = original.distance(clone)

# calculate the sum of their radii (use a value that makes sense for your game)