EAST() EAST() EAST() SOUTH() EAST() EAST() EAST() NORTH() NORTH()
EAST(5) SOUTH(3) WEST(2) NORTH(1)
EAST(2) IF (ROCK AHEAD) { NORTH() EAST(2) SOUTH() } EAST(2)
IF (ROCK AHEAD) { SOUTH() EAST(2) NORTH() } EAST() IF (ROCK AHEAD) { SOUTH() EAST(2) NORTH() } ELSE { EAST(4) } EAST()
EAST() FOR i = 1 TO 5 { NORTH() EAST() } EAST(2)
EAST(2) FOR i = 1 TO 3 { EAST(3) NORTH(3) WEST(3) SOUTH(3) } SOUTH(2)
distance = 4 EAST(distance) NORTH(distance) distance = 3 WEST(distance) SOUTH(distance) distance = 2 EAST(distance) NORTH(distance)
distance = 5 EAST(distance) distance = distance - 1 SOUTH(distance) distance = distance - 1 WEST(distance) distance = distance - 1 NORTH(distance)
FUNCTION avoidRock() { NORTH() EAST(2) SOUTH() } EAST() avoidRock() EAST(2) avoidRock() EAST()
FUNCTION avoidRock() { NORTH() EAST(2) SOUTH() } WHILE (CLEAR AHEAD) { EAST() IF (ROCK AHEAD) { avoidRock() } }
EAST(3) FOR i = 1 TO 2 { NORTH(2) WEST(2) FOR j = 1 TO 3 { SOUTH() EAST() } }
function sailAlong(distance) { SOUTH(distance) EAST(distance) } EAST() sailAlong(2) sailAlong(1) sailAlong(2) EAST(2)
distance = 5 WHILE (distance > 0) { EAST(distance) SOUTH(2) distance = distance - 3 } EAST() SOUTH()
distance = 4 * 2 EAST(distance) distance = (distance / 2) + 1 SOUTH(distance) distance = (distance - 2) * 2 WEST(distance) distance = (distance / 3) ^ 2 NORTH(distance)
WHILE (CLEAR AHEAD) { EAST() IF (ROCK AHEAD) { NORTH() EAST() } ELSE IF (ISLAND AHEAD) { SOUTH(2) EAST(2) } }
distance = 3 WHILE (distance > 0) { EAST(distance) NORTH(distance) distance = distance - 1 IF (distance == 1) { EAST() SOUTH() } } EAST()
EAST() WHILE (ROCK AHEAD) { NORTH() WEST() SOUTH(2) EAST() } EAST(5) NORTH(3)
REPEAT { EAST() } UNTIL (ROCK AHEAD) REPEAT { SOUTH() } UNTIL (ROCK AHEAD) REPEAT { EAST() } UNTIL (ROCK AHEAD)
REPEAT { SOUTH() WHILE (CLEAR AHEAD) { EAST() } } UNTIL (TREASURE REACHED)
x = 3 y = 2 EAST(x) NORTH(y) temp = x x = y y = temp EAST(x) NORTH(y)
array = [6, 3, 1, 5, 2, 4] EAST(array[0]) NORTH(array[1]) WEST(array[2]) SOUTH(array[3])
array = [3, 4, 2, 3, 7, 2, 3, 4] FOR i = 0 TO 6 { IF (array[i] > array[i+1]) { EAST() } ELSE { SOUTH() } }
array = [3, 4, 2, 3, 7, 2, 3, 4] FOR i = 0 TO 7 { IF (i==0) OR (i==4) { EAST(array[i]) } ELSE IF (i==1) OR (i==5) { SOUTH(array[i]) } ELSE IF (i==2) OR (i==6) { WEST(array[i]) } ELSE IF (i==3) OR (i==7) { NORTH(array[i]) } }
FOR i = 0 TO 7 { IF (i MOD 2) == 0 { EAST(2) SOUTH(2) } ELSE { WEST() NORTH() } } EAST(4)
array = [6, 4, 3, 5, 2, 1, 3, 4] FOR i = 0 TO 7 { IF (array[i] MOD 2) == 0 { EAST(2) SOUTH(2) } ELSE { WEST() NORTH() } } EAST(4)
pirate = "REDBEARD" IF LEFT(pirate,1) == "R" { EAST(6) SOUTH(3) } ELSE { SOUTH(3) EAST(6) } IF RIGHT(pirate,1) == "R" { WEST(5) NORTH(2) } ELSE { NORTH(2) WEST(5) }
title = "CAPTAIN" name = "HOOK" EAST(LENGTH(title)) FOR i = 1 TO LENGTH(name) { SOUTH() WEST() }
array = [8, -5, 2, -2] distance = LENGTH(array) EAST(distance) SOUTH(distance) distance = 0 FOR i = 0 TO 3 { distance= distance + array[i] } WEST(distance) NORTH()
arrayA = [6, 7, 9, 11] arrayB = [1, 3, 6, 9] EAST(arrayA[0] - arrayB[0]) NORTH(arrayA[1] - arrayB[1]) WEST(arrayA[2] - arrayB[2]) SOUTH(arrayA[3] - arrayB[3])
distance = ASCII("G") - 65 EAST(distance) distance = ASCII("O") - 75 SOUTH(distance) distance = ASCII("L") - 70 WEST(distance) distance = ASCII("D") - 65 NORTH(distance)
array2D = [[3,1,4], [2,6,3], [1,4,5]] EAST(array2D[0,0]) NORTH(array2D[0,1]) WEST(array2D[1,0]) SOUTH(array2D[2,1]) EAST(array2D[2,2])
FUNCTION sailAlong(distance) { if (distance > 0) { EAST(distance) NORTH() sailAlong(distance-1) } ELSE { EAST(2) SOUTH(3) } } sailAlong(3)
Level Complete!