Learning Math and CS with Robotics
Sign In

Linkbot Image Mindstorm Image
Grid Size: S M L Simple View: MinView:
Trace Diamond, Part 2

Use the  File  menu or  Load Blocks  button to load your solution file from Part 1 into the Workspace. Then create a function named drawSide that has code that calls the drawStep function three times. Then add the code block that calls the new drawSide function to the main code. When you run the program, the robot should trace out the bottom left side of the diamond figure. Save your code with a new filename (to be used in Part 3). 

Load Blocks
Workspace Save Show C Edit C Ch Shell Console

Rubbish bin