Posted 11 January 2013 - 03:09 AM
Hello Everyone, I was playing around in CC and I thought to create a room builder, I have got it going round doing a half outline of the room and the height, But I could not get it to fill in the room, could I please get some help? Here is my code:
length = io.read()
print("What is the Width?: ")
width = io.read()
print("What is the Height?: ")
height = io.read()
for i = 1, length do
turtle.digDown()
turtle.placeDown()
turtle.forward()
end
turtle.turnRight()
for i = 1, width do
turtle.digDown()
turtle.placeDown()
turtle.forward()
end
If anyone can help then that would be great!
Spoiler
print("What is the Length?: ")length = io.read()
print("What is the Width?: ")
width = io.read()
print("What is the Height?: ")
height = io.read()
for i = 1, length do
turtle.digDown()
turtle.placeDown()
turtle.forward()
end
turtle.turnRight()
for i = 1, width do
turtle.digDown()
turtle.placeDown()
turtle.forward()
end
If anyone can help then that would be great!