import pygame from constants import COLUMNS, GRID_CELL_PADDING, GRID_CELL_WIDTH, BORDER_WIDTH from helpers import draw_text class Stats: def __init__(self): self.grid = [] def draw(self, screen, font): x = (GRID_CELL_PADDING + GRID_CELL_WIDTH) * COLUMNS + BORDER_WIDTH + 20 y = 8 pygame.draw.rect(screen, (255, 255, 255), pygame.Rect(x, y, 370, 782)) draw_text('GAME STATS', font, (0, 0, 0), screen, x + 120, y + 30)