Projekt_AI-Automatyczny_saper/Engine/Board.py
2021-03-15 19:04:51 +01:00

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)