import turtle import random def moves(): while x win_height or pos[1] - r < -1*win_height: # print(pos[1] + r) # r=r/2 # print('hit') # elif pos[0] + r > win_width or pos[0] -r < -1*win_width: # r=r/2 # print('side hit') return r # while y < 10: # while x < 215: # asdf.forward(x) # asdf.left(x) # # print('forward: '+str(x)) # # print('left: '+str(x*x)) # x = x + 1 # asdf.right(x) # x = 0 # y=y+1