Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
local robot=require("robot")
local component=require("component")
local sides=require("sides")
local inv=component.inventory_controller
local g=component.generator
function main(depth,width,height)
for i=1,width do
for i=1,depth do
for i=1,height do
robot.swing()
robot.swingUp()
robot.up()
end
for i=1,height do
robot.down()
end
robot.forward()
end
robot.turnAround()
for i=1,depth do
robot.forward()
end
robot.turnRight()
robot.swing()
robot.forward()
end
Advertisements
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.
AcceptLearn more