Matt Baker
This is an implementation of the Shapebugs algorithm from
My program begins (via the setup button) by randomly dispersing the agents throughout the display. All agents start in the lost state and assume that they are outside of the desired shape. An agent inside the shape is assumed to have been found.
Each agent's movement is as follows:
Agent colors:
* A red agent is an agent outside of the desired shape
* A blue agent is an agent inside of the desired shape
* A green agent is an agent that has been displaced
Agents can be added or removed dynamically via the slider. The shake button chooses a random square from the screen and moves all agents within that square in random directions away from their starting positions.
Note: I found that using 1,000+ agents seems to work best for modeling the shape.
20100623