Projekt_AI-Automatyczny_saper/main.py
2021-04-13 19:32:08 +02:00

34 lines
617 B
Python

import pygame
from Engine.Game import Game
WIN = pygame.display.set_mode((800, 800))
FPS = 60
def main():
run = True
clock = pygame.time.Clock()
game = Game(WIN)
while run:
pygame.init()
clock.tick(FPS)
for event in pygame.event.get():
if event.type == pygame.QUIT:
run = False
pygame.time.delay(200)
# while True:
# if game.finalState():
# run = False
# break
# list = game.findBomb()
# for point in list:
game.move()
game.update()
main()