Ant Colony Pheromone Foraging (2D)
Top-down ant colony optimization: a two-pheromone stigmergic model where ants lay home and food trails, evaporation prunes the weak ones, and the surviving trails converge on the shortest route between nest and food.
This 2D companion runs the same stigmergic mechanic as the 3D ant colony scene — a nest, foraging ants and the environment they interact with — but as a real, numerically simulated two-pheromone ant colony optimization model instead of a decorative mound. Ants leave the nest with no map, lay a "to-home" trail while searching and a "to-food" trail while returning, and both fields evaporate every frame; the paths that survive are the ones enough ants keep reinforcing. Drop food sources and obstacles anywhere on the stage and watch the trail network reshape itself, with a live path-efficiency stat showing the trip length converging toward the shortest walkable route.
A top-down two-pheromone ant colony optimization model where ants lay home and food trails that evaporate over time, so only the routes enough ants keep reinforcing survive as the shortest path between nest and food.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install