from World import *

world = TurtleWorld()
bob = Turtle(world)
bob.delay = 0.001

bob.x = -150
bob.y = 90
bob.redraw()

def koch(t, n):
    if n<5:
        fd(t, n)
        return
    n = n/3.0
    koch(t, n)
    lt(t, 60)
    koch(t, n)
    rt(t, 120)
    koch(t, n)
    lt(t, 60)
    koch(t, n)

for i in range(3):
    koch(bob, 300)
    rt(bob, 120)

world.mainloop()
