ErickDaGamer

Tynker: Toxic Jungle solutions

Sep 13th, 2020
675
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Level 1
  2. forward()
  3. forward()
  4.  
  5. Level 2
  6. forward()
  7. forward()
  8. forward()
  9. #forward()
  10. #forward()
  11. #forward()
  12.  
  13. Level 3
  14. forward()
  15. turn_right()
  16. forward()
  17.  
  18. Level 4
  19. forward()
  20. forward()
  21. turn_right()
  22. forward()
  23. forward()
  24. turn_right()
  25. forward()
  26. forward()
  27.  
  28. Level 5
  29. fire()
  30. forward()
  31. forward()
  32. forward()
  33.  
  34. Level 6
  35. fire()
  36. forward()
  37. forward()
  38. fire()
  39. forward()
  40. forward()
  41.  
  42. Level 7
  43. forward()
  44. forward()
  45. forward()
  46. turn_left()
  47. forward()
  48. forward()
  49. forward()
  50. turn_left()
  51. forward()
  52. forward()
  53. forward()
  54.  
  55. Level 8
  56. forward()
  57. forward()
  58. forward()
  59. forward()
  60. forward()
  61. forward()
  62. forward()
  63. forward()
  64.  
  65. Level 9
  66. for i in range(1,9,1):
  67.     forward()
  68.  
  69. Level 10
  70. for i in range(8):
  71.     fire()
  72.     forward()
  73.  
  74. Level 11
  75. for i in range(5):
  76.     forward()
  77.     turn_right()
  78.     forward()
  79.     turn_left()
  80.  
  81. Level 12
  82. forward()
  83. jump()
  84. forward()
  85. forward()
  86.  
  87. Level 13
  88. for i in range(3):
  89.     fire()
  90.     jump()
  91.     forward()
  92.  
  93. Level 14
  94. for i in range(3):
  95.     fire()
  96.     forward()
  97.     jump()
  98.  
  99. Level 15
  100. for i in range(3):
  101.     fire()
  102.     forward()
  103.     turn_left()
  104.     forward()
  105.     turn_right()
  106.  
  107. jump()
  108.  
  109. for i in range(3):
  110.     turn_right()
  111.     fire()
  112.     forward()
  113.     turn_left()
  114.     forward()
  115.  
  116. Level 16
  117. for i in range(7):
  118.     forward()
  119.     if (has_path_left()):
  120.         turn_left()
  121.         fire()
  122.  
  123. Level 17
  124. for i in range(9):
  125.     forward()
  126.     if (has_path_right()):
  127.         turn_right()
  128.  
  129. Level 18
  130. for i in range(10):
  131.     forward()
  132.     if (has_path_left()):
  133.         turn_left()
  134.        
  135.     if (has_path_right()):
  136.         turn_right()
  137.  
  138. Level 19
  139. while not reached_goal():
  140.     forward()
  141.     if (enemy_in_sight()):
  142.         fire()
  143.        
  144.     if not (has_path_ahead()):
  145.         turn_left()
  146.  
  147. Level 20
  148. while not reached_goal():
  149.     if (enemy_in_sight()):
  150.             fire()
  151.     elif (is_gap_ahead()):
  152.             jump()
  153.     elif (has_path_left()):
  154.         turn_left()    
  155.         forward()
  156.     else:
  157.         forward()
RAW Paste Data