See Also:
Level | Score | Regex | Credit |
---|
See Also:
Level | Score | Regex | Credit |
---|
from turtle import * | |
import math | |
def square(a, b, level): | |
if level == 0: | |
return | |
side = math.sqrt((a[0] - b[0]) ** 2 + (a[1] - b[1]) ** 2) | |
angle = math.asin(0.6) | |
direction = math.atan2(b[1] - a[1], b[0] - a[0]) |