Add a color property to the Pulse class which is set through a parameter passed to the constructor (similar to x and y).

Here is my solution.


Modify the "Strength in numbers" game so that when ENTER is pressed, 25 Soldiers appear in random positions on the window. Do this by adding a second constructor to Soldier which takes no arguments and gives the created Soldier a random position.

Here is my solution.


If you play with the "Strength in numbers" game for a little while, you will notice a couple of bugs.

Base yourself on the code from the previous exercise and fix these two bugs.

Here is my solution.

Processing Workshop

Elie Zananiri
Alberta College of Art + Design
3-5 April 2008