Here's a brief overview of the commands and constructs at your disposal.
DRIVE: Drive one square in the direction you're facing
TURN RIGHT: Turns 90 degrees to the right, relative to where you're facing
TURN LEFT: Turns 90 degrees to the left, relative to where you're facing
PICK UP CREDIT: Pick up a credit you're currently on
WALL AHEAD: True if the square directly ahead of the car (keeping in mind the direction) is a wall or boundary of the grid
ON CREDIT: True if currently on a square containing a credit
ON FINISH: True if currently standing on the finish field
One command per line. You can use conditionals either as one-liners or as blocks.
Conditional one-line examples:
IF WALL AHEAD: TURN RIGHT UNLESS WALL AHEAD: DRIVE
Conditional block example:
IF WALL AHEAD: TURN RIGHT TURN RIGHT END
Currently only conditional loops, either as one-liners or as blocks.
Loop one-line examples:
UNTIL WALL AHEAD: DRIVE WHILE WALL AHEAD: TURN RIGHT
Loop block example:
WHILE ON CREDIT: PICK UP CREDIT DRIVE END