# Arup Guha
# 2/7/2020
# Turtle Stair Case

'''
  I messed up drawing a rectangle because I forgot to turn left a second time,
  but, the class really liked this, (they said it was modern art), so I am
  posting it, with the error =)
'''

import turtle

SIZE = 8
LEN = 50
STARTX = -200
STARTY = -200
def main():

    colors = ["red","green","blue","orange","yellow", "purple","gold","pink"]

    # Draw fast and make our color red.
    turtle.speed(0)

    # Double loop through each of the 8 x 8 squares.
    for col in range(SIZE):

        turtle.fillcolor(colors[col])
        turtle.begin_fill()

        # Calculate where to go.
        x = STARTX + col*LEN
        y = STARTY 

        # Move the pen there.
        turtle.penup()
        turtle.setpos(x,y)
        turtle.pendown()
            
        # Draw the square.
        for i in range(2):
            turtle.forward(LEN)
            turtle.left(90)
            turtle.forward(LEN*(col+1))

        # This ends the fill of this square.
        turtle.end_fill()
        
main()
