Update mapper and related files.

This commit is contained in:
Bill Niblock 2024-10-29 21:42:51 -04:00
parent 2df9b96765
commit a5c2a4c825
4 changed files with 37 additions and 27 deletions

View file

@ -40,7 +40,7 @@ solution is along the sides or bottom.
(var cell-stack [(math.random 1 num-cells)])
(while (> 0 (length cell-stack)
(var current-cell (table.remove cell-stack (length cell-stack)))
(var current-cell (table.remove cell-stack))
(tset cells current-cell :v true)
; Check if any of the current cell's neighbors are