Skip to content

Instantly share code, notes, and snippets.

@earthling-shruti
Created January 22, 2013 02:23
Show Gist options
  • Save earthling-shruti/4591539 to your computer and use it in GitHub Desktop.
Save earthling-shruti/4591539 to your computer and use it in GitHub Desktop.
@LOOPSTART
GOTO << @NORTHANDWESTGETOUT
GOTO << @LOOPSTART
@NORTHANDWESTGETOUT
CALLFF << @LOOK @NORTH 2
EQUAL << @CELL_EMPTY
IFFGOTO << @MOVEWESTGETOUT
CALLFF << @MOVE @NORTH 2
POP
GOTO << @NORTHANDWESTGETOUT
@MOVEWESTGETOUT
CALLFF << @MOVE @WEST 2
POP
GOTO << @NORTHANDWESTGETOUT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment