summary refs log tree commit diff homepage
diff options
context:
space:
mode:
-rw-r--r--brutalmaze/maze.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/brutalmaze/maze.py b/brutalmaze/maze.py
index 15610dd..da0de7c 100644
--- a/brutalmaze/maze.py
+++ b/brutalmaze/maze.py
@@ -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