Learning CS and Math with Robotics

CSP Unit 3 Lesson 5.9a

Piano MinView
Linkbot Image Mindstorm Image
Grid Lines:
Tics Lines:
Width px
Hash Lines:
Width px
Font px
Trace Lines:
Robot 1:
Width px
Robot 2:
Width px
Robot 3:
Width px
Robot 4:
Width px
Simple View: Grid Size: S M L
CSP Unit 3 Lesson 5.9a

Now that we have the drawStep function, we note that the bottom left side of the diamond figure consists of three steps. So use the pre-placed "do something" code block to create a function named drawSide that contains code that calls the drawStep function three times, and then add the code block that calls the drawSide function to the main code at the top . When you run the code, the robot should trace out the bottom left side of the diamond figure.

Load Blocks
Workspace Show Ch Save File Console

Rubbish bin