Exercise 5: Movements 3

Movements 3

As you can imagine, not only the head can be moved to the north, and a program can combine any kind of movements.

Write a program that moves the head two positions to the East and one to the South, resulting in the following effect:

Inicial Final
GBB/1.0 size 3 3 head 0 2 GBB/1.0 size 3 3 head 2 1

Remember that the command which moves the head is called Move (neither mOvE or move or MOVE). It's very important to observe the syntax! If you don't do it, the program won't work.

Give me a hint!

The directions have the names of the four cardinal points, with the first letter capitalized:

  • North
  • South
  • East
  • West

You must sign in before submitting your solutions

Oops, your solution didn't work

  • Check that your program does not have recursion or an infinite loop
  • Check that you have an internet connection
  • Wait a while and try again

We are processing you solution

Please press F5 if results are not displayed after a few seconds