Learning CS and Math with Robotics

CSP Unit 3 Lesson 5.9b

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.9b

With one side traced using the drawSide function (as shown in red on the figure), it looks like we might need to create another function to draw the next side. But note that if, after drawing the side, we move the robot forward 4 units and turn it to the right, it will be perfectly positioned to use the drawSide function for the upper left side of the diamond figure. Try it out! Add the code blocks to the pre-placed code at the beginning that (1) call the drawSide function, (2) move the robot forward 4 units and turn it right, and (3) call the drawSide function again.

Load Blocks
Workspace Show Ch Save File Console

Rubbish bin