from turtle import *


# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
# * L es f o n c t i o n s *
# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

def case ( i , j ) :
    return (-370+70*i ,350-70*j )

def carres_noirs() :
    for j in range (10) :
        for i in range (10) :
            goto(case (i,j) )
            if i==0 or i==j:
                Allume_carre(i,j)
            else:
                fillcolor("black")
                stamp()

def Allume_carre (c,l) :
    fillcolor("yellow")
    goto ( case ( c , l ) )
    stamp ( )
    hideturtle( )

# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
# * Programme p r i n c i p a l *
# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
penup()
clear()
shape("square")
shapesize(2)
carres_noirs()
