chroma_solstice/_debug_helpers.lua
2015-03-15 04:52:18 -04:00

14 lines
No EOL
253 B
Lua

function shallowTablePrint(t)
for i, v in pairs(t) do
print(i, v)
end
end
function printMatrix(matrix)
for i, v in ipairs(matrix) do
for j, w in ipairs(v) do
if not w then io.write("o ") else io.write("x ") end
end
io.write("\n")
end
end