Posted 17 September 2015 - 11:23 PM
keep getting error — Bios:338:string "clearout":59: '<eof>' expected
term.clear()
term.setCursorPos(1,1)
print("Length: ")
print("Width : ")
print("Height: ")
local length = 0
local width = 0
local height = 0
term.setCursorPos(9,1)
length = read()
term.setCursorPos(9,2)
width = read()
term.setCursorPos(9,3)
height = read()
term.clear()
print("Starting Program…")
turtle.dig()
turtle.forward()
for i=1,height do
for j=1,width do
for k=1,length do
turtle.dig()
turtle.forward()
end
if j ~= width then
if (j%2) == 0 then
turtle.turnLeft()
turtle.dig()
turtle.forward()
turtle.turnLeft()
end
else
turtle.turnRight()
turtle.dig()
turtle.forward()
turtle.turnRight()
end
end
end
if i ~= height then
if (width%2) == 0 then
turtle.turnRight()
for p = 1,width do
turtle.forward()
end
turtle.turnRight()
end
else
turtle.turnLeft()
for q = 1,width do
turtle.forward()
end
turtle.turnLeft()
for e = 1,length do
turtle.forward()
end
turtle.turnLeft()
turtle.turnLeft()
end
end
turtle.digUp()
turtle.up()
end
print("Program Completed")
term.clear()
term.setCursorPos(1,1)
print("Length: ")
print("Width : ")
print("Height: ")
local length = 0
local width = 0
local height = 0
term.setCursorPos(9,1)
length = read()
term.setCursorPos(9,2)
width = read()
term.setCursorPos(9,3)
height = read()
term.clear()
print("Starting Program…")
turtle.dig()
turtle.forward()
for i=1,height do
for j=1,width do
for k=1,length do
turtle.dig()
turtle.forward()
end
if j ~= width then
if (j%2) == 0 then
turtle.turnLeft()
turtle.dig()
turtle.forward()
turtle.turnLeft()
end
else
turtle.turnRight()
turtle.dig()
turtle.forward()
turtle.turnRight()
end
end
end
if i ~= height then
if (width%2) == 0 then
turtle.turnRight()
for p = 1,width do
turtle.forward()
end
turtle.turnRight()
end
else
turtle.turnLeft()
for q = 1,width do
turtle.forward()
end
turtle.turnLeft()
for e = 1,length do
turtle.forward()
end
turtle.turnLeft()
turtle.turnLeft()
end
end
turtle.digUp()
turtle.up()
end
print("Program Completed")