Advertisement
Guest User

Untitled

a guest
Jun 30th, 2015
392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. local r = require("robot")
  2. local cs=1
  3. b=true
  4. for i=1 , 16 do
  5. for j=1 , 15 do
  6. r.forward()
  7. if r.count()==0 then cs = cs + 1 r.select(cs) end;
  8. r.placeDown()
  9. end
  10. if b then r.turnRight() r.forward() r.placeDown() r.turnRight()
  11. b=false
  12. else r.turnLeft() r.forward() r.placeDown() r.turnLeft() b=true
  13. end
  14.  
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement