chess/main.py
2026-05-18 18:59:54 +02:00

25 lines
416 B
Python

import pygame as pg
from board import render_board
pg.init()
size = 900
screen = pg.display.set_mode((size, size))
clock = pg.time.Clock()
running = True
while running: #open window
for event in pg.event.get():
if event.type == pg.QUIT:
running = False
render_board(screen, size)
#flip display to put game on screen
pg.display.flip()
clock.tick(60)
pg.quit()