Please run this in full screen.
tThis program arose as the consequence of a lesson which appeared in a publication produced by the Mathematics Curriculum and Teaching Program in Australia. Information about that is located at http://trove.nla.gov.au/work/16810529. The specific lesson was about spatial awareness. Embodied in this program is a sheet offering thoughts for use within a lesson. In my original program I was able to interrupt each iteration of a loop, unfortunately I cannot see a means to do this in Scratch. While some spirals paths only need to be repeated twice, I've let all be capable of 4. Here also I've forced each 'leg' of the journey (turn of 90) to be in a different colour). Students should come to reason which numbers produce closed paths, and how they are related. Similarly, there are those which are open, ie, infinite. On the Sprite1 Script page I've set variable "st" to 10 pixels. The variable "No_paths" is set when a clone of Sprite2 is chosen. While I haven't bothered here, one could allow the program to automatically set a maximum value for "st" for the size held by "No_paths"; I don't remember what I allowed the max. value for my Commodore, be it 20/30 (?) but it created some wonderful mazes!