WOWOWOWOWOWOWO WI DID IT WOWOWWWWWW WOW
This commit is contained in:
parent
286871ca21
commit
c668dc513b
7 changed files with 294 additions and 58 deletions
14
_debug_helpers.lua
Normal file
14
_debug_helpers.lua
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue