function table.map_length(t)
local c = 0
for k,v in pairs(t) do
c = c+1
end
return c
end
a = { move1 = "oi", move2 = "oi2"}
for x=1, table.map_length(a) do
print(a["move" .. x])
end
for k, v in pairs(a) do
print(v)
end
--https://pt.stackoverflow.com/q/38912/101
ZnVuY3Rpb24gdGFibGUubWFwX2xlbmd0aCh0KQogICAgbG9jYWwgYyA9IDAKICAgIGZvciBrLHYgaW4gcGFpcnModCkgZG8KICAgICAgICAgYyA9IGMrMQogICAgZW5kCiAgICByZXR1cm4gYwplbmQKCmEgPSAgeyBtb3ZlMSA9ICJvaSIsIG1vdmUyID0gIm9pMiJ9Cgpmb3IgeD0xLCB0YWJsZS5tYXBfbGVuZ3RoKGEpIGRvCiAgICBwcmludChhWyJtb3ZlIiAuLiB4XSkKZW5kCgpmb3IgaywgdiBpbiBwYWlycyhhKSBkbwogICAgcHJpbnQodikKZW5kCgotLWh0dHBzOi8vcHQuc3RhY2tvdmVyZmxvdy5jb20vcS8zODkxMi8xMDE=