You may also like

problem icon

First Forward Into Logo 1: Square Five

A Short introduction to using Logo. This is the first in a twelve part series.

problem icon

LOGO Challenge 1 - Star Square

Can you use LOGO to create this star pattern made from squares. Only basic LOGO knowledge needed.

problem icon

LOGO Challenge 5 - Patch

Using LOGO, can you construct elegant procedures that will draw this family of 'floor coverings'?

LOGO Challenge 7 - More Stars and Squares

Stage: 3 and 4 Challenge Level: Challenge Level:1

The idea of a variable is a powerful one.

Spend some time trying to see what the variable does. Perhaps you can introduce variables of your own to different procedures?

The procedure for a ring of squares might look something like:
TO RINGSQ :N
REPEAT 8 [SQ :N FD :N RT 90 FD :N LT 45]
END

I think this could be more elegant with a procedure that dealt with the relocation of the turtle before drawing the next square (the messy bit inside the REPEAT brackets with FDs and turns)..

Part of the challenge is to produce elegant solutions to any problems asked or any replications that you attempt. Where elegance implies simplicity within the program(s) and procedures devised.

Alternatively you may like to explore the following procedure:

TO NESTSQ :SIDE
IF :SIDE < 2 [STOP]
REPEAT 4 [ NESTSQ :SIDE/3 FD :SIDE RT 90]
END

Perhaps instead of squares you might like to vary the number of repeats and the angle turned through.