- Click ▶ Start to begin simulation
- Click 🍎 Add Food to place new food sources
- Click 🐜 Add Ants to increase colony size
- Click anywhere on the map to add food at that location
- Adjust the speed slider to change simulation speed
- The queen ant will create new ants when enough food is stored
Watch as ants follow pheromone trails to efficiently gather food!
This simulation demonstrates swarm intelligence in ant colonies. Key behaviors:
- Worker Ants: Collect food and follow pheromone trails
- Scout Ants: Explore randomly to discover new food sources
- Queen Ant: Reproduces new ants when the colony has enough food
- Pheromone Trails: Used for communication between ants
The simulation uses requestAnimationFrame for smooth performance even with hundreds of ants.