Posted 17 November 2012 - 09:01 AM
Greetings all!
I get the following error while trying to run my "trunk" program;
bios:338: [string "trunk"]:36: '=' expected
The program is meant to dig a 3x3 x 100 tunnel for my branch mine. I have it stored in the \rom\programs\turtle folder. The code as follows;
I have search here and Google, but have not found anything to help on the error. Thank you in advance for anything you can provide. Note, I can't figure out how to indent my code code on here, my apologies.
I get the following error while trying to run my "trunk" program;
bios:338: [string "trunk"]:36: '=' expected
The program is meant to dig a 3x3 x 100 tunnel for my branch mine. I have it stored in the \rom\programs\turtle folder. The code as follows;
length = 100
lengthCount = 0
function digRow()
turtle.up()
turtle.dig()
turtle.forward()
turtle.digUp()
turtle.digDown()
turtle.turnRight()
turtle.dig()
turtle.forward()
turtle.digUp()
turtle.digDown()
turtle.dig()
turtle.forward()
turtle.digUp()
turtle.digDown()
turtle.turnLeft()
turtle.dig()
turtle.forward()
lengthCount = lengthCount + 2
turtle.digUp()
turtle.digDown()
turtle.turnLeft()
turtle.dig()
turtle.forward()
turtle.digUp()
turtle.digDown()
turtle.dig()
turtle.forward()
turtle.digUp()
turtle.digDown()
turtle.turnRight()
turtle.down
end
while lengthCount < length do
digRow()
end
I have search here and Google, but have not found anything to help on the error. Thank you in advance for anything you can provide. Note, I can't figure out how to indent my code code on here, my apologies.