AI_Labyrinth/gamemodes.py

19 lines
360 B
Python
Raw Normal View History

2020-04-27 11:38:36 +02:00
from grid import *
from config import *
def singlePlayer():
global pause
gameExit = False
a = Grid()
a.generate_map()
while not gameExit:
for event in pg.event.get():
if event.type == pg.QUIT:
pg.quit()
quit()
a.display_map()
pg.display.update()
clock.tick(60)