Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("I will dance now. RUN FOR YOUR LIFE!!!!!")
- sleep(2.5)
- local r = 0
- local moves = {
- {char="f",move=turtle.forward},
- {char="b",move=turtle.back},
- {char="l",move=turtle.turnLeft},
- {char="r",move=turtle.turnRight},
- {char="u",move=turtle.up},
- {char="d",move=turtle.down}
- }
- while true do
- r = math.random(1, #moves)
- write(moves[r].char)
- moves[r].move()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement