Square mode update

This commit is contained in:
Ishaan Bhardwaj
2021-01-14 16:28:18 -05:00
parent 4e9cea7dda
commit 061f6f5164
5 changed files with 92 additions and 2 deletions

View File

@@ -66,4 +66,13 @@ end
function Mod1(n, m)
-- returns a number congruent to n modulo m in the range [1;m] (as opposed to [0;m-1])
return ((n-1) % m) + 1
end
end
function table.contains(table, element)
for _, value in pairs(table) do
if value == element then
return true
end
end
return false
end