Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local rawData = {
- "100000000000000000001",
- "000000000111000000000",
- "000000000000000000000",
- "000000000000000000000",
- "000000000000000000000",
- "000000000000000000000",
- "000000000000000000000",
- "000000000000000000000",
- "000000000000000000000",
- "000000000000000000000",
- "111000000111000000000",
- "000000000000000000000",
- "000000000000000000000",
- "000000000000000000000",
- "000000000000000000000",
- "000000000000000000000",
- "000000000000000000000",
- "000000000000000000000",
- "000000000000000000000",
- "000000000000000000000",
- "100000000000000000001",
- }
- local data = {}
- for _, rawRow in ipairs(rawData) do
- local row = {}
- for cell in rawRow:gmatch(".") do
- table.insert(row, tonumber(cell))
- end
- table.insert(data, row)
- end
- peripheral.wrap("top").writeIota(data)
Advertisement
Add Comment
Please, Sign In to add comment