🐜 Ant Colony Pheromone Trails (2D)
A 2D top-down ant colony simulation: ants wander from the nest, deposit pheromone on the way back from food, and the colony converges on the shortest path around obstacles as evaporation clears weaker trails.
⚙ Under the hood
Watch a colony of ants wander from their nest, discover food, and lay down pheromone trails on the way back. Shorter routes get reinforced as more ants use them, while evaporation clears weaker paths. Click the map to add obstacles and watch the colony reroute and converge on a new shortest path.
ant colony optimizationpheromone trailstigmergyswarm intelligenceshortest path2d
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install