https://github.com/redtachyon/antworld-0.0
A simple Python implementation of the pheromone-based ant model, adapted from https://practicingruby.com/articles/ant-colony-simulation
https://github.com/redtachyon/antworld-0.0
Last synced: over 1 year ago
JSON representation
A simple Python implementation of the pheromone-based ant model, adapted from https://practicingruby.com/articles/ant-colony-simulation
- Host: GitHub
- URL: https://github.com/redtachyon/antworld-0.0
- Owner: RedTachyon
- Created: 2020-06-02T20:17:05.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-03-19T13:21:16.000Z (over 5 years ago)
- Last Synced: 2025-01-24T15:12:58.360Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 172 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ant colony simulation
This is a Python adaptation of [this](https://practicingruby.com/articles/ant-colony-simulation)
Ruby implementation (which in turn is a port of [this](https://gist.github.com/michiakig/1093917) Clojure version)
I know, it's going pretty far in terms of adaptations, but it's still preserving the interesting properties.
The setup is pretty simple - install the packages with `pip install -r requirements.txt`
It's pretty barebones and I'm not sure if I will continue developing it (if I will, I'll likely rewrite it from scratch),
but you can run `python main.py` and generate your own ant colony!
Here's a taste of what can happen, visualized via matplotlib:
