Skip to content

Commit 65b41a9

Browse files
Update cell.js
1 parent 12b14bc commit 65b41a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cell.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Maze-Generator
21
function Cell(i, j) {
32
this.i = i;
43
this.j = j;
@@ -12,7 +11,8 @@ function Cell(i, j) {
1211
var right = grid[index(i + 1, j)];
1312
var bottom = grid[index(i, j + 1)];
1413
var left = grid[index(i - 1, j)];
15-
14+
15+
// Recursive backtracker
1616
if (top && !top.visited) {
1717
neighbors.push(top);
1818
}

0 commit comments

Comments
 (0)