Learning CS and Math with Robotics

CSP Unit 3 Lesson 5.10c

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.10c

Our final step is to define one single "drawDiamond" function and call it to have the robot trace out the diamond. The function definition should start with a traceOn command and finish with a traceOff command. In between it should call the drawSide function four times. Modify the pre-placed code to define the drawDiamond function and call it.

Load Blocks
Workspace Show Ch Save File Console

Rubbish bin