Exercise 4: Small stairs

Small stairs

Taking advantage of the tools you already know, draw blue stairs like the ones that are shown in the image.

The head starts in the origin (meaning, in the edge South-West) and must be at the right bottom of the end of the stairs.

Look at the image:

GBB/1.0 size 4 4 cell 0 1 Azul 1 Negro 0 Rojo 0 Verde 0 cell 0 0 Azul 1 Negro 0 Rojo 0 Verde 0 cell 1 1 Azul 1 Negro 0 Rojo 0 Verde 0 cell 2 0 Azul 1 Negro 0 Rojo 0 Verde 0 cell 1 0 Azul 1 Negro 0 Rojo 0 Verde 0 cell 0 2 Azul 1 Negro 0 Rojo 0 Verde 0 head 2 0

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