Clarify what happens behind mouse move and close #10

This commit is contained in:
Nguyễn Gia Phong 2018-08-28 23:05:44 +07:00
parent 1e7e981e81
commit 865a3e3b71
1 changed files with 1 additions and 1 deletions

View File

@ -445,10 +445,10 @@ class Maze:
self.stepx = w - e
return
# Forest Fire algorithm with step count
queue = defaultdict(list, {0: [(self.destx, self.desty)]})
visited, count, distance = set(), 1, 0
while count:
# Hashes of small intergers are themselves so queue is sorted
if not queue[distance]: distance += 1
x, y = queue[distance].pop()
count -= 1