Posted 16 March 2012 - 02:35 AM
ok what ever i do thsi loop wont work it will go thro only once even if i set the input to 100000000.
hers my cod:
counter = 1
print ("How long do you wont the tunnel to be")
input = read()
repeat
turtle.dig()
turtle.forward()
turtle.turnRight()
turtle.dig()
turtle.turnLeft()
turtle.turnLeft()
turtle.dig()
turtle.digUp()
turtle.up()
turtle.dig()
turtle.turnRight()
turtle.turnRight()
turtle.dig()
turtle.digUp()
turtle.up()
turtle.dig()
turtle.turnLeft()
turtle.turnLeft()
turtle.dig()
turtle.turnRight()
turtle.down()
turtle.down()
counter = counter + 1
until counter < input
hers my cod:
counter = 1
print ("How long do you wont the tunnel to be")
input = read()
repeat
turtle.dig()
turtle.forward()
turtle.turnRight()
turtle.dig()
turtle.turnLeft()
turtle.turnLeft()
turtle.dig()
turtle.digUp()
turtle.up()
turtle.dig()
turtle.turnRight()
turtle.turnRight()
turtle.dig()
turtle.digUp()
turtle.up()
turtle.dig()
turtle.turnLeft()
turtle.turnLeft()
turtle.dig()
turtle.turnRight()
turtle.down()
turtle.down()
counter = counter + 1
until counter < input