14 lines
388 B
Python
14 lines
388 B
Python
import pygame
|
|
from Constants import ROWS, COLS, SQUARE_SIZE, GREEN, BLACK
|
|
|
|
|
|
class Board:
|
|
def __init__(self):
|
|
self.board = []
|
|
|
|
def draw_squares(self, win):
|
|
win.fill(GREEN)
|
|
for row in range(ROWS):
|
|
for col in range(COLS):
|
|
pygame.draw.rect(win, BLACK, pygame.Rect(row * SQUARE_SIZE, col * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE), 2)
|