2021-03-13 21:16:35 +01:00
|
|
|
import pygame
|
|
|
|
from Engine.Board import Board
|
|
|
|
|
|
|
|
WIN = pygame.display.set_mode((800, 800))
|
|
|
|
FPS = 60
|
|
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
run = True
|
|
|
|
clock = pygame.time.Clock()
|
|
|
|
|
|
|
|
while run:
|
|
|
|
pygame.init()
|
|
|
|
board = Board()
|
|
|
|
clock.tick(FPS)
|
|
|
|
|
|
|
|
for event in pygame.event.get():
|
|
|
|
if event.type == pygame.QUIT:
|
|
|
|
run = False
|
|
|
|
board.draw_squares(WIN)
|
|
|
|
pygame.display.update()
|
|
|
|
|
|
|
|
|
2021-03-15 19:07:11 +01:00
|
|
|
main()
|