From 79c829dcbdec58c66493378c3be88daf08d53ff8 Mon Sep 17 00:00:00 2001 From: Sara Kowalska Date: Mon, 27 Apr 2020 13:18:18 +0200 Subject: [PATCH] Poprawki zamykanian okna --- Restaurant/main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Restaurant/main.py b/Restaurant/main.py index 11892ce..da55217 100644 --- a/Restaurant/main.py +++ b/Restaurant/main.py @@ -473,14 +473,15 @@ def main(): puddles.append((1, 4)) while flag: - pygame.time.delay(100) - clock.tick(60) redrawWindow(window) #bot.moveRandomly() goal = (1, 3) bot.goByAStar(goal) - time.sleep(60) + time.sleep(5) flag = False + pygame.quit() + exit() + main()