Learning Math and CS/STEAM with Robotics
Sign In

CSP Unit 3 Lesson 9.4

Linkbot Image Mindstorm Image
Grid Size: S M L Simple View: MinView:
CSP Unit 3 Lesson 9.4

A definition for a drawSquare function has been provided. (It draws a square of side length 8.) Add a repeat loop (from the Loops tab) to the pre-placed code and insert a call to the drawSquare function inside it. After the call to drawSquare, also insert a turnLeft command for a turn of 10 degrees. After you get it running, experiment with different values for the number of iterations, the speed, the distance, and the angle. Try to create a diagram of repeating squares that goes 360 degrees around.

Workspace Load Save Ch Ch Shell Console
Rubbish bin