# Homework 32 solution, problem 2: target. # Run with: python exercises/32/homework/solutions/02-target.py import pygame pygame.init() screen = pygame.display.set_mode((800, 600)) pygame.display.set_caption("Target") clock = pygame.time.Clock() cx, cy = 400, 300 # centre running = True while running: for event in pygame.event.get(): if event.type == pygame.QUIT: running = False screen.fill((200, 200, 200)) pygame.draw.circle(screen, (220, 0, 0), (cx, cy), 150) pygame.draw.circle(screen, (255, 255, 255), (cx, cy), 100) pygame.draw.circle(screen, (220, 0, 0), (cx, cy), 50) pygame.display.flip() clock.tick(60) pygame.quit()