RoboBlocky
Sign In
Learning Math/CS/Engineering Design with Robotics
Grid Size: S M L Simple View: MinView:

The pre-placed code moves the robot to the point x = 10, y = 10 (with the trace off) and then calls the "traceSquare" function (defined at the bottom of the code), sending it a parameter value of 14. When the traceSquare function receives the value of 14, it inserts it into its "sideLength" parameter and then executes the function's code to trace the square. There's one bug in the code, however. Run the pre-placed code to see what happens, and then find and fix the bug. (See the hint if you get stuck.)

Piano
Workspace Load Save Ch Ch Shell Console
Lock
roboblockyA852.ch
Time