Monday, November 21, 2011

Pheromone System - Lots of Ants


animation in Processing

“Ants” moves by exchanging the pheromone signals.

This program allows the agent to move by following two simple rules: try to move to the nearby point which has strongest pheromone left by others; try to move along the paths on the map. The pheromone signals left on the trails keeps fading through time.


Screen shot:




















Agents do 3 calculations in each step:







No comments:

Post a Comment