🐜 Ant Colony Optimization: Top-Down Pheromone Field (2D)
Ant colony optimisation on a top-down map: ants lay pheromone, trails strengthen on short tours, and the colony solves a travelling-salesman problem checked against the exact optimum.
A 2D companion to the 3D Ant Colony Pheromone Trails simulation: a real top-down Ant Colony Optimization engine with a pheromone concentration grid that ants deposit along their travelled path and that evaporates exponentially over time. Each ant probabilistically steers toward whichever forward/left/right sensor cell smells strongest, converging colony traffic onto a near-shortest route between the nest and each food source as trips accumulate. Add or remove food sources with a click and watch the average round-trip length fall in the live strip chart.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install