# INSTRUCTIONS

Navigate the robot to the green finish square by running your script. When the robot moves over red squares, the value of the square is added to the robot's sum. In order to win, the robot's sum must be equal to the value indicated on the finish line.

## Keywords:

MOVE_UP, MOVE_DOWN, MOVE_RIGHT, MOVE_LEFT:
to move the character.
UP, DOWN, RIGHT, LEFT:
to check the cell adjacent to the character.
SUM: the value of the player's sum.
WALL: boolean to check if a cell is a wall.

## Operators:

is: checks equality.
not: checks inequality.
< / <= : less than / less than or equal.
> / >= : greater than / greater than or equal.
and / or : && and || operators.

## Conditionals and Loops:

if a [operator] b {}: if a satisfies b do...
else if a [operator] b {}: used after an if statement
else {}: if the condition was not satisfied do...
while a [operator] b {}: while a satisfies b do...
for a in range(begin, end, +/-increment) {}:
for a between begin and end do... then increment a.

## Variables

var x = value: defines a variable called x and assigns a value to it.
x = newValue: assigns a new value to an already defined variable.

## Example Code:

MOVE_RIGHT;
if UP is WALL {
MOVE_DOWN;
}
else if DOWN not WALL {
MOVE_RIGHT;
}
else {
MOVE_LEFT;
}
var amount = 2;
amount = 5;
for i in range(0,amount,+1){
while SUM <= i and UP not WALL{
MOVE_UP;
MOVE_DOWN;
}
}