# Dr. V # Oct 2 # Program to create a checkerboard quilt import pygame, time pygame.init() screen = pygame.display.set_mode([601,601]) screen.fill([0,0,0]) pygame.display.flip() for j in range(0,10): for k in range(0,10): if (j+k)%2 == 0: pygame.draw.rect(screen,[149,88,44],[j*60,k*60,60,60]) else: pygame.draw.rect(screen,[150,0,0],[j*60,k*60,60,60]) pygame.display.flip() time.sleep(.01) pygame.draw.rect(screen,[10,100,10],[0,0,600,600],10) pygame.display.flip() raw_input("Press ENTER to close the graphics window") pygame.quit()