Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = 0
- y = 0
- print("Please select a picture")
- picname = io.read()
- h = fs.open(picname, "r")
- width = tonumber(h.readLine())
- height = tonumber(h.readLine())
- print(width)
- print(height)
- et = (width * height) * 2
- print("Estimated Time:")
- print(et)
- for y = 0, height, 1 do
- for x = 0, width, 1 do
- as = tonumber(h.readLine())
- turtle.select(as)
- if turtle.getItemCount(as) == 0 then
- io.read()
- end
- turtle.placeDown()
- turtle.forward()
- end
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- for z = 0, width do
- turtle.back()
- end
- end
- print("Success!")
Advertisement
Add Comment
Please, Sign In to add comment