title: how moving two turtle at the same time?
body: <p>The two turtles have to be moving at the same time so that they can maybe meet but they move one after the other and I do not known how to change that.
  I have tried a lot of way but I can not achieve a good result</p>
  
  <p><a href="https://i.stack.imgur.com/s0Fm3.png" rel="nofollow noreferrer">first part of the code</a>
  <a href="https://i.stack.imgur.com/qQPhs.png" rel="nofollow noreferrer">second and last part of the code</a></p>
  
  <p>thanks you for your answers.</p>
  
  <pre><code>import turtle as ka              
  kame=ka.Turtle("turtle")          
  schildkröte=ka.Turtle("turtle")   
  kame.pensize(3)                  
  schildkröte.pensize(3)          
  kame.speed(1)
  schildkröte.speed(1)
  kame.setposition(-200,0)      
  kame.setposition(-200,200)      
  kame.setposition(200,200)            
  kame.setposition(200,0)              
  kame.home()                         
  import random                       
  import math
  def is_collided_with(a, b):
      return abs(a.xcor() - b.xcor()) &lt; 10 and abs(a.ycor() - b.ycor()) &lt; 10
  def reset():
      kame.penup()
      kame.setposition(random.randint(-50, 50), random.randint(0, 50))
      kame.pendown()
  def reset2():
      schildkröte.penup()
      schildkröte.setposition(random.randint(-50, 50), random.randint(0, 50))
      schildkröte.pendown()
      while c:
          x,r=random.randint(-200,200),random.randint(-200,200)
          y,s=random.randint(0,200),random.randint(0,200)
          w,u=random.choice([-200,200,6]),random.choice([-200,200,6])
          z,v=random.choice([0,200]),random.choice([0,200])
          k,l=random.choice(["red","blue","green"]),random.choice(["cyan","pink","yellow"])
          if w!=6:
              if u!=6:
                  kame.pencolor(k),schildkröte.pencolor(l)
                  kame.penup(),schildkröte.penup()
                  kame.setposition(x,y),schildkröte.setposition(r,s)
                  kame.pendown(),schildkröte.pendown()
                  kame.setposition(w,y),schildkröte.setposition(u,s)
                  kame.undo(),schildkröte.undo()
                 if is_collided_with(kame, schildkröte):
                      print('Collision!')
                      print('aaaaaaaaaaahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh')
                      reset()
                      reset2()
              else:
                  kame.pencolor(k),schildkröte.pencolor(l)
                  kame.penup(),schildkröte.penup()
                  kame.setposition(x,y),schildkröte.setposition(r,s)
                  kame.pendown(),schildkröte.pendown()
                  kame.setposition(w,y),schildkröte.setposition(r,v)
                  kame.undo(),schildkröte.undo()
                  if is_collided_with(kame, schildkröte):
                      print('Collision!')
                      print('aaaaaaaaaaahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh')
                      reset()
                      reset2()
  </code></pre>