14 lines
383 B
Python
14 lines
383 B
Python
import pygame
|
|
from Constants import ROWS, COLS, SQUARE_SIZE, GREEN
|
|
|
|
|
|
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, (0,0,0), pygame.Rect(row * SQUARE_SIZE, col * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE), 2)
|