Posted 11 April 2012 - 10:40 PM
Hi,
this is my first try to program a turtle. The turtle should built a house without roof. x,y,z are width, length and height.
When i try to run this i get this error: bios:206: [String "house"]:36: "=" expected
I really dont know whats wrong. Plz tell me if you find a mistake.
Thank you.
this is my first try to program a turtle. The turtle should built a house without roof. x,y,z are width, length and height.
When i try to run this i get this error: bios:206: [String "house"]:36: "=" expected
x=5
y=4
z=3
turtle.select(1)
turtle.turnLeft()
turtle.forward()
turtle.turnRight()
turtle.forward()
turtle.turnRight()
for var1=1,z,1 do
for var2=1,x,1 do
if turtle.compare()== false then
turtle.dig()
turtle.place()
end
turtle.turnLeft()
turtle.forward()
turtle.turnRight()
end
turtle.forward()
turtle.turnRight()
for var3=1,y,1 do
if turtle.compare()== false then
turtle.dig()
turtle.place()
end
turtle.turnLeft()
turtle.forward()
turtle.turnRight()
end
turtle.forward()
turtle.turnRight()
end
I really dont know whats wrong. Plz tell me if you find a mistake.
Thank you.
Edited on 12 April 2012 - 06:50 AM