# Arup Guha
# 3/30/2020
# Solution to COP 2930 Individual Program #4 Part B: Tic-Tac-Toe Grid

import pygame, sys
from pygame.locals import *

pygame.init()
pydisplay = pygame.display.set_mode((600, 600))
pygame.display.set_caption("Pygame Tic Tac Toe Grid")

# Colors we'll use.
white = pygame.Color(255, 255, 255)
blue = pygame.Color(20, 20, 150)

# Make Display White
pydisplay.fill(white)

# Main Game Loop
while True:
    
    for event in pygame.event.get():
        if event.type == QUIT:
            pygame.quit()
            sys.exit()

    # Here are four horizontal lines.
    for y in range(150, 500, 100):
        pygame.draw.line(pydisplay, blue, (150, y), (450, y))
        
    # Here are four vertical lines.
    for x in range(150, 550, 100):
        pygame.draw.line(pydisplay, blue, (x, 150), (x, 450))

    # Update the display    
    pygame.display.update()

