Skip to content

This is a simulation of an ant colony that demonstrates ant collaboration through the use of pheromone trails.

License

tyranitar/ant-colony

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ant Colony

This is a simulation of an ant colony that demonstrates how ants collaborate through the use of pheromone trails. The simulation states are divided into 4 layers:

State map

When the simulation starts, ants crawl out of their nest (center) and randomly traverse the map in search for food (red squares):

Ant colony

When an ant finds food, it brings it back to the nest while leaving behind a pheromone trail. When other ants hit a pheromone trail, they follow it towards the food. This allows ants to collaborate indirectly, emulating intelligent behavior:

Positive feedback

This allows for efficient food collection, even over long distances, because the ants that find food by following a pheromone trail continue to reinforce the path to the food:

Positive feedback

Using pheromone trails has a clear advantage over pure random search:

Pheromone

About

This is a simulation of an ant colony that demonstrates ant collaboration through the use of pheromone trails.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages