CarGo

Penalty points: 0
Credits collected: 0/0

Program

  • 
        

    Language reference

    Here's a brief overview of the commands and constructs at your disposal.

    Commands

    Conditions

    Syntax

    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

    Loops

    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