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.
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