Projekt_AI-Automatyczny_saper/Engine/Board.py

14 lines
388 B
Python
Raw Normal View History

2021-03-13 21:16:35 +01:00
import pygame
2021-03-15 19:04:51 +01:00
from Constants import ROWS, COLS, SQUARE_SIZE, GREEN, BLACK
2021-03-13 21:16:35 +01:00
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):
2021-03-15 19:04:51 +01:00
pygame.draw.rect(win, BLACK, pygame.Rect(row * SQUARE_SIZE, col * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE), 2)