import pygame

# Homework: count mouse clicks and print the count each time.
# Every time the player clicks the mouse button, add 1 to a counter
# and print it to the terminal.
# Hint: use event.type == pygame.MOUSEBUTTONDOWN to detect a click.

pygame.init()

screen = pygame.display.set_mode((640, 480))
pygame.display.set_caption("Click Counter")

# TODO: create a click counter variable here
# clicks = 0

running = True
while running:
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            running = False

        # TODO: add an elif that detects a mouse click, increments the
        #       counter, and prints the new total

    screen.fill((20, 50, 80))
    pygame.display.flip()

pygame.quit()
