Advertisement
jille_Jr

CC: JediKnightKrazy's dance prog. remake

Oct 25th, 2012
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. print("I will dance now. RUN FOR YOUR LIFE!!!!!")
  2. sleep(2.5)
  3. local r = 0
  4. local moves = {
  5.   {char="f",move=turtle.forward},
  6.   {char="b",move=turtle.back},
  7.   {char="l",move=turtle.turnLeft},
  8.   {char="r",move=turtle.turnRight},
  9.   {char="u",move=turtle.up},
  10.   {char="d",move=turtle.down}
  11. }
  12. while true do
  13.   r = math.random(1, #moves)
  14.   write(moves[r].char)
  15.   moves[r].move()
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement