Skip to content

Instantly share code, notes, and snippets.

@iamgreaser
Created May 30, 2011 10:52
Show Gist options
  • Save iamgreaser/998717 to your computer and use it in GitHub Desktop.
Save iamgreaser/998717 to your computer and use it in GitHub Desktop.
code idea thing
bridge controller:
open
self lock.
self getBridgeParts do: [ :part |
part move: 1@0.
self wait: 1.
].
self getUpperDoor move: -2@0 steps: 2.
self getLowerDoor move: 2@0 steps: 2.
self unlock.
close
self lock.
self getUpperDoor move: 2@0 steps: 2.
self getLowerDoor move: -2@0 steps: 2.
self getBridgeParts reverse do: [ :part |
part move: -1@0.
self wait: 1.
].
self unlock.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment