parent
2cb93f7013
commit
11a902dcd7
@ -1,11 +1,15 @@
|
|||||||
local robot = require("robot")
|
local robot = require("robot")
|
||||||
|
|
||||||
local function mine()
|
local arg = ...
|
||||||
|
|
||||||
|
local function mine(count)
|
||||||
|
for i = 1, count do
|
||||||
robot.swing()
|
robot.swing()
|
||||||
robot.up()
|
robot.up()
|
||||||
robot.swing()
|
robot.swing()
|
||||||
robot.down()
|
robot.down()
|
||||||
robot.forward()
|
robot.forward()
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
mine()
|
mine(arg)
|
||||||
|
Loading…
Reference in new issue