

The 'bob' and 'anchor' objects are essentially the same particles with slight variations in visuals. In terms of physics qualities, they are the same.

This is the Particle class of the 'bob' object, which contains vectors for acceleration, velocity, and position. It also contains a variable for mass. Force is applied, taking into account the object mass when altering the acceleration. The 'anchor' object possesses the same attributes.

An example of the display function for the Particle class (which is the same for the anchor object). If the ellipse were to leave the canvas, it would trigger the display of text, stating which player was the winner.

In order to achieve fluid motion of the objects, I utilized the smooth movement technique I picked up during the last few sessions working on my "Moths" and "Sharks" projects.

Lastly, the inclusion of the spring object ensures the push & pull relationship between the 'bob' and 'anchor' objects.