Exercise 11: DrawLine3

DrawLine3

Now it's your turn!

Basing on DrawBlackLine3…

procedure DrawBlackLine3() {
    Drop(Black)
    Move(East)
    Drop(Black)
    Move(East)
    Drop(Black)
    ComeBack()
}

…write a procedure DrawLine3 which gets a color and draws the line in that color.

We will be in charge of writing the programs to use it with every one of the colors.

Give me a hint!

Watch out!

DrawLine3 must work for any color as we did with Drop3.

procedure Drop3(color){
  Drop(color)
  Drop(color)
  Drop(color)
}

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