summaryrefslogtreecommitdiff
path: root/path_finding/astar.py
diff options
context:
space:
mode:
Diffstat (limited to 'path_finding/astar.py')
-rw-r--r--path_finding/astar.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/path_finding/astar.py b/path_finding/astar.py
index f87f706..213a51b 100644
--- a/path_finding/astar.py
+++ b/path_finding/astar.py
@@ -1,6 +1,7 @@
import pygame
import math
from queue import PriorityQueue
+import time
WIDTH = 800
WIN = pygame.display.set_mode((WIDTH, WIDTH))
@@ -115,6 +116,7 @@ def algorithm(draw, grid, start, end):
open_set_hash = {start}
while not open_set.empty():
+
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()