Advertisement
Doob

geoprint

Feb 19th, 2017
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. local arg={...}
  2. if #arg == 0 then
  3.   arg[1] = 0
  4. end
  5. local t=require("component").geolyzer.scan(-3,-3,tonumber(arg[1]),7,7,1)
  6. local a=''
  7. for z=0,6 do
  8.   for x=1,7 do
  9.     if t[x+z]==0 then
  10.       a=a..'o'
  11.     else
  12.       a=a..'x'
  13.     end
  14.   end
  15.   a=a..'|'
  16. end
  17. print(a)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement