From 533379b702ad25835105c0798ff5413d1bf095ef Mon Sep 17 00:00:00 2001
From: elioat <{ID}+{username}@users.noreply.github.com>
Date: Thu, 24 Oct 2024 09:04:44 -0400
Subject: *

---
 html/broughlike/index.html | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'html/broughlike')

diff --git a/html/broughlike/index.html b/html/broughlike/index.html
index 71cd9d7..b5a4f09 100644
--- a/html/broughlike/index.html
+++ b/html/broughlike/index.html
@@ -161,12 +161,11 @@
             const visited = Array(GRID_SIZE).fill().map(() => Array(GRID_SIZE).fill(false));
 
             function dfs(x, y) {
-                if (x < 0 || x >= GRID_SIZE || y < 0 || y >= GRID_SIZE) return false;
+                if (x < 0 || x >= GRID_SIZE || y < 0 || y >= GRID_SIZE) return false; // Are the coordinates in bounds?
                 if (visited[x][y]) return false;
                 if (walls.some(wall => wall.x === x && wall.y === y)) return false;
                 visited[x][y] = true;
                 if (x === exit.x && y === exit.y) return true;
-
                 return dfs(x + 1, y) || dfs(x - 1, y) || dfs(x, y + 1) || dfs(x, y - 1);
             }
 
-- 
cgit 1.4.1-2-gfad0