         world.send 'step'
         setTimeout((-> self(self)), delay)
     step_and_repeat(step_and_repeat)
-    
+
   error: (world, message) ->
     console.error message
     beep(my.duration.tone, 2)

  interval: my.duration.step
  speed: 0
  _EXPORTS: ['step', 'stop', 'run', 'error', 'done']
  
  step: (world, args) ->
    console.log 'stepping'
    world.send 'fetch'
    world.send 'execute'
    world.send 'prefetch'
    
  stop: (world, args) -> world.put('speed', 0)
  
  run: (world, args) ->
    world.put('speed', 1)
    step_and_repeat = (self) ->

# http://stackoverflow.com/questions/879152/ how-do-i-make-javascript-beep
# http://jsfiddle.net/55Kfu/
#

{my} = require '../../my'

