Project 24: Interpret Robby Directions

Project: Robby will be given a list of directions using turnLeft() and move().  You will need to appropriately initialize the values of 'x' and 'y' that represent Robby's final position.

Robby always starts at the origin (0, 0) facing East.  

For example, if Robby was given the directions:

turnLeft()     Robby turns 90 degrees counterclockwise (stays at the same location)

move()           Robby moves one unit in the direction he is currently facing.

Then he would be at coordinate (0, 1) so you would initialize the variables below:

x = 0

y = 1

Note: Be careful not to double-click when clicking 'execute'.

Note: If your code works for 5 test cases in a row, you can enter your e-mail address.