Advertisement
Melodicolt

Untitled

Aug 2nd, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. function moveAround()
  2. if turtle.turnRight() then
  3. if turtle.forward() then
  4. if turtle.turnLeft() then
  5. if turtle.forward() then
  6. if turtle.forward() then
  7. if turtle.turnLeft() then
  8. if turtle.forward() then
  9. if turtle.turnRight then
  10. move()
  11. else
  12. print("I couldn't turn right.")
  13. end
  14. else
  15. print("I couldn't move forward.")
  16. end
  17. else
  18. print("I couldn't turn left.")
  19. end
  20. else
  21. print("I couldn't move forward.")
  22. end
  23. else
  24. print("I couldn't move forward.")
  25. end
  26. else
  27. print("I couldn't turn left.")
  28. end
  29. else
  30. print("I couldn't move forward.")
  31. end
  32. elseif turtle.turnLeft() then)
  33. if turtle.forward() then
  34. if turtle.turnRight() then
  35. if turtle.forward() then
  36. if turtle.forward() then
  37. if turtle.turnRight() then)
  38. if turtle.forward() then
  39. if turtle.turnLeft then
  40. print("I moved around the block that was in front of me.")
  41. else
  42. print("I couldn't turn left.")
  43. end
  44. else
  45. print("I couldn't move forward.")
  46. end
  47. else
  48. print("I couldn't turn right.")
  49. end
  50. else
  51. print("I couldn't move forward.")
  52. end
  53. else
  54. print("I couldn't move forward.")
  55. end
  56. else
  57. print("I couldn't turn right.")
  58. end
  59. else
  60. print("I couldn't move forward.")
  61. end
  62. else
  63. print("I'm seriously stuck, master...")
  64. end
  65. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement