Advertisement
Yann_Malaquin

Mining

Mar 30th, 2020
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.26 KB | None | 0 0
  1. robot = require("robot")
  2.  
  3. while i < 9 do
  4.    
  5.     for j = 0, 3 do
  6.         robot.forward()
  7.         i = i + 1
  8.     end
  9.    
  10.     if x % 2 == 0
  11.         robot.turnRight()
  12.         robot.forward()
  13.         robot.turnRight()
  14.     else
  15.         robot.turnLeft()
  16.         robot.forward()
  17.         robot.turnLeft()
  18.     end
  19.     j = 0
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement