
Ant Colony
Watch AI ants learn to find food using Q-learning. See pheromone trails emerge as the colony optimizes its foraging strategy.
Created by jeffasante
Create a free account to get instant access
How to Use
Watch ants learn to find food using artificial intelligence. The simulation runs automatically - ants start with no knowledge and gradually become better at finding efficient paths to food sources. • **Objective**: Observe how ants learn to collect food and return it to their nest (center of grid) using reinforcement learning • **Controls**: No controls needed - the simulation runs automatically. Just watch the ants explore and learn. • **What you'll see**: - Black dots: Ants without food (exploring) - Red dots: Ants carrying food (returning to nest) - Colored squares: Food sources that deplete over time - Purple trails: Pheromone paths left by successful ants • **Key mechanics**: - Ants start at the center nest and explore randomly - When they find food, they carry it back and leave pheromone trails - Other ants can follow these chemical trails to find food faster - The AI learns which actions lead to rewards (finding food, returning home) - After 42 episodes, the exploration rate stabilizes and ants become very efficient • **Side panel shows**: Current episode, steps taken, total food collected, rewards earned, and a graph tracking food levels at each source over time The simulation demonstrates swarm intelligence - how simple individual behaviors create complex group problem-solving.