This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ROWS = 16 | |
COLS = 32 | |
--- @param b table | |
local function zeroBoard(b) | |
for i = 1, ROWS do | |
b[i] = {} | |
for j = 1, COLS do | |
-- 0 is truthy. this is annoying. | |
b[i][j] = false |