Ants
Ant colony simulator
Install / Use
/learn @gliderkite/AntsREADME
ants
An ant colony simulator written in Python.
How To Play
ants is a zero-player game, so you can simply start the simulation and enjoy it!

However it is possible to configure the simulator by editing the program configuration file (config.json). In particular you can change:
- The colors of ants (foraging or looking for food), nest, food, pheromones and the background.
- The world's size (and zoom factor), the ants size, the nest size and location.
- The time between one birth/death and the next one.
- The pheromone evaporation speed.
- Which type of pheromone will be drawn.
- Initial food quantity and the number of different locations.
- The behavior of a random ant movment.
- The ants life expactancy.
- The quantity of food that must be collected in order to generate a new ant.
Requirements
In order to play the ants simulator you have to download and install Python (2.X version) and the wxPython GUI library.
Launch the game
Once you have correctly installed wxPython you can simply move to the src directory and run the script by typing (on Unix-based systems):
./wxAntSim.py
The Rules
An ant is an agent whose sole purpose is to collect food and bring it back to the nest. In order to achive this goal ants can be divided in two groups:
- Ants seeking for food.
- Ants seeking for the nest.
The former will follow the "food pheromone" and leave the "colony pheromone", the latter will do the opposite, that is to follow the colony pheromone and leave the food pheromone. The world is represented by a grid, where each cell can be occupied by an ant or by the food. The visibility of an ant is quite limited: it can see only the three cells in front of it, and according to the pheromone intensity it can choose what is the path to follow. If there is no pheromone the ant will move randomly.
