Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (21 sloc) 0.403 kb
positions = {
A: ''
B: ''
C: ''
D: ''
E: ''
F: ''
}
machine_moves = ''
execute = (turns) ->
if typeof turns == 'string'
turns = _.chars(turns)
_.each(turns, (face, index)->
face = face.charAt(0)
switch face
when face.toLowerCase() # if face is uppercase
direction = 'cw'
when face.toUpperCase() # if face is lowercase
direction = 'ccw'
face = face.toLowerCase()
)
Jump to Line
Something went wrong with that request. Please try again.