Machine_learning_2023/Interface/interface.py

22 lines
517 B
Python
Raw Normal View History

2023-03-12 01:39:08 +01:00
import sys
import pygame
from .helpers import *
def initialize_interface(tiles_x, tiles_y):
size = width, height = 800, 800
screen = create_screen(size)
pygame.display.set_caption('Epic AI Vacuum Cleaner')
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
sys.exit()
screen.fill(BLACK)
# rect(screen, WHITE, 50,50,90,90)
draw_board(screen, WHITE, width, height, tiles_x, tiles_y)
pygame.display.flip()