Skip to content

antonroesler/ants-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ants Simulation

A simulation of the natural behavior of ants.

Gif of the Simulation

About the Project

The ants leave the anthill in search of a food source. In doing so, they leave behind red pherhormones. If a food source is found, an ant leaves behind yellow pherhormones. And tries to find back to the heap via the red pherhormone trail. Other ants that find the yellow pherhormone trail follow it to the source.

The whole visualization is done with Python and matplotlib. I plan to further improve the alogrithm to create even more natural behavior and possibly add obstacles. Also, the simulation is currently very inefficient and should be improved further.

Sequence diagram

The basic logic is as follows:

Sequence Diagramm

Some more results with different settings

Simulation 7

About

A simulation of the natural behavior of ants.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages