Guest User

list.lua

a guest
Dec 9th, 2023
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.80 KB | None | 0 0
  1. local rawData = {
  2. "100000000000000000001",
  3. "000000000111000000000",
  4. "000000000000000000000",
  5. "000000000000000000000",
  6. "000000000000000000000",
  7. "000000000000000000000",
  8. "000000000000000000000",
  9. "000000000000000000000",
  10. "000000000000000000000",
  11. "000000000000000000000",
  12. "111000000111000000000",
  13. "000000000000000000000",
  14. "000000000000000000000",
  15. "000000000000000000000",
  16. "000000000000000000000",
  17. "000000000000000000000",
  18. "000000000000000000000",
  19. "000000000000000000000",
  20. "000000000000000000000",
  21. "000000000000000000000",
  22. "100000000000000000001",
  23. }
  24.  
  25. local data = {}
  26.  
  27. for _, rawRow in ipairs(rawData) do
  28.     local row = {}
  29.     for cell in rawRow:gmatch(".") do
  30.         table.insert(row, tonumber(cell))
  31.     end
  32.     table.insert(data, row)
  33. end
  34.  
  35. peripheral.wrap("top").writeIota(data)
  36.  
  37.  
  38.  
  39.  
  40.  
Advertisement
Add Comment
Please, Sign In to add comment