Skip to content

Instantly share code, notes, and snippets.

@maddo
Forked from fran6co/robot.coffee
Last active December 27, 2015 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maddo/7330501 to your computer and use it in GitHub Desktop.
Save maddo/7330501 to your computer and use it in GitHub Desktop.
class TestRobot1 extends BaseRobot
run: () ->
@move_forwards 10, =>
@move_backwards 10
@turn_left Math.floor(Math.random()*361), =>
@_run()
tr = new TestRobot1("My first test robot")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment