0x726048362412y726048362412
Grid:
Tics Lines:
Width px
Hash Lines:
Width px
Labels:
Font px
Trace Lines:
Robot 1:
Width px
Robot 2:
Width px
Robot 3:
Width px
Robot 4:
Width px
Axes: x-axis y-axis Show Grid
Grid: 24x24 inches 36x36 inches 72x72 inches
96x96 inches 192x192 inches
Quad: 4 quadrants 1 quadrant
Units: US Customary Metric
Background:

Robot 1

Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (14 in, 42 in)
Current Angle: 0 deg
Wheel Radius:
Track Width:
in

Robot 2

Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (30 in, 26 in)
Current Angle: 0 deg
Wheel Radius:
Track Width:
in

Robot 3

Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (42 in, 46 in)
Current Angle: 180 deg
Wheel Radius:
Track Width:
in

Robot 4

Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (54 in, 28 in)
Current Angle: 180 deg
Wheel Radius:
Track Width:
in

Hockey Team
Problem Statement:
The pre-placed blocks will give you everything needed for the program. Your goal is to edit the loop of the puck in the given code to make it look like the red linkbot is passing the ball to the green linkbot and the green linkbot is hitting the puck to make a goal; while the pink robot intercepts and makes a goal.
/* Code generated by RoboBlockly v2.0 */
#include <chplot.h>
#include <linkbot.h>
#include <mindstorms.h>
double i;
CPlot plot;
CLinkbotI robot1;
double radius1 = 1.75;
double trackwidth1 = 3.69;
CLinkbotI robot2;
double radius2 = 1.75;
double trackwidth2 = 3.69;
CMindstorms robot3;
double radius3 = 1.1;
double trackwidth3 = 4.54;
CMindstorms robot4;
double radius4 = 1.1;
double trackwidth4 = 4.54;

plot.noStrokeColor();
plot.fillColor("black");
robot1.turnRightNB(45, radius1, trackwidth1);
robot2.setSpeed(5, radius2);
robot2.drivexyToNB(36, 30, radius2, trackwidth2);
robot3.setSpeed(16, radius3);
robot3.drivexyToNB(28, 38, radius3, trackwidth3);
for(i = 1; i <= 22; i++) {
  //plot.backgroundImage("hockeyRink.png");
  plot.circle(14 + i, 42 + -0.545 * i, 2);
  delaySeconds(0.03);
}
robot2.setSpeed(10, radius2);
robot2.drivexyToNB(46, 32, radius2, trackwidth2);
robot4.setSpeed(10, radius4);
robot4.drivexyToNB(60, 36, radius4, trackwidth4);
robot1.setSpeed(10, radius1);
robot1.drivexyToNB(24, 40, radius1, trackwidth1);
robot3.setSpeed(16, radius3);
robot3.drivexyToNB(50, 40, radius3, trackwidth3);
for(i = 1; i <= 22; i++) {
  //plot.backgroundImage("hockeyRink.png");
  plot.circle(36 + i, 30 + 0.3 * i, 2);
  delaySeconds(0.03);
}
robot4.setSpeed(14, radius4);
robot4.drivexyToNB(52, 36, radius4, trackwidth4);
robot1.setSpeed(6, radius1);
robot1.drivexyToNB(12, 38, radius1, trackwidth1);
robot2.setSpeed(10, radius2);
robot2.drivexyToNB(20, 28, radius2, trackwidth2);
robot3.drivexyToNB(36, 40, radius3, trackwidth3);
for(i = 1; i <= 50; i++) {
  //plot.backgroundImage("hockeyRink.png");
  plot.circle(58 - i, 36, 2);
  delaySeconds(0.01);
}
robot4.moveWait();
robot3.moveWait();
robot2.moveWait();
robot1.moveWait();

plot.axisRange(PLOT_AXIS_XY, 0, 72);
plot.ticsRange(PLOT_AXIS_XY, 6);
plot.sizeRatio(1);
plot.plotting();
Blocks Save Blocks Load Blocks Show Ch Save Ch Workspace
Problem Statement:
The pre-placed blocks will give you everything needed for the program. Your goal is to edit the loop of the puck in the given code to make it look like the red linkbot is passing the ball to the green linkbot and the green linkbot is hitting the puck to make a goal; while the pink robot intercepts and makes a goal.

		
Time