For each of the game screenshots below, write the code to calculate the distance between the indicated characters. Refer to Distance from Game Coordinates for an Example.

Screenshot of a game. A right triangle connects a cyclist and the cop that’s chasing him. The position of the cyclist is (170,400). The position of the cop is (525,300)

Screenshot of a game. A right triangle connects a cyclist and the chicken he’s chasing. The position of the cyclist is (385, 110). The position of the chicken is (230,390).

These materials were developed partly through support of the National Science Foundation, (awards 1042210, 1535276, 1648684, 1738598, 2031479, and 1501927). CCbadge Bootstrap by the Bootstrap Community is licensed under a Creative Commons 4.0 Unported License. This license does not grant permission to run training or professional development. Offering training or professional development with materials substantially derived from Bootstrap must be approved in writing by a Bootstrap Director. Permissions beyond the scope of this license, such as to run training, may be available by contacting contact@BootstrapWorld.org.