
# cantorCheese.py
# Mazes for the Mind, Clifford Pickover, Ch. 5
# input: 6 or 7

import turtle, random
from TurtleUtils import *


SIZE = 200


def cheese(t, x, y, r, level):
  drawCircle(t, x, y, r)
  if level > 1:
    cheese(t,  x-r/2, y, r/2, level-1)
    cheese(t,  x+r/2, y, r/2, level-1)


# ----------------------- main ---------------------------

level = int(input("level? "))

t = turtle.Turtle()
scr = t.screen
scr.title('Cantor Cheese')
t.hideturtle()
t.speed(0)

cheese(t, 0, 0, SIZE, level)

scr.exitonclick()

