CyberSlug Rules!

Beginner Programming CMPS060

Prof. Paulo Franca

Home

Syllabus

Login

Objects

Download

Staff only

Draw a square of size 3

( this may be a function )

draw a line of size 2;
turn right;
draw a line of size 2;
turn right;
draw a line of size 2;
turn right;
draw a line of size 2;
 
but... how do you draw a line of size 2?
draw a line of size 2 can be a function too!!!

how about including the right turn in that function?

what do you think?
See the function