https://github.com/michaeljwelsh/bot-evolution
An interesting display of evolution through neural networks and a genetic algorithm
https://github.com/michaeljwelsh/bot-evolution
evolution genetic-algorithm neural-network python visual
Last synced: about 2 months ago
JSON representation
An interesting display of evolution through neural networks and a genetic algorithm
- Host: GitHub
- URL: https://github.com/michaeljwelsh/bot-evolution
- Owner: MichaelJWelsh
- License: mit
- Created: 2017-05-01T02:47:28.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-01T14:37:02.000Z (about 8 years ago)
- Last Synced: 2025-04-07T20:21:22.387Z (3 months ago)
- Topics: evolution, genetic-algorithm, neural-network, python, visual
- Language: Python
- Size: 418 KB
- Stars: 138
- Watchers: 6
- Forks: 19
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bot Evolution
Bot evolution is an interesting display of evolution through neural networks and a genetic algorithm. Bot's have a field of vision represented by their antenna's. They are told if they "see" food in their field of vision, and are then asked to either move forward, turn counterclockwise, turn clockwise, or do nothing. If a bot does not recieve food after a certain period of time, it will die off. When a bot gets food, it reproduces asexually with a chance of mutation. If a bot goes too far out of the map, it dies and a completely random bot is spawned in the middle of the map. Each bot has its own neural network. You can see species emerge based on their colors. A random group of bots is spawned in the middle of the map upon startup.
## Usage
Simply go into the source folder and type this in terminal:
```python
python3.5 main.py
```## Dependencies
- numpy
- pygame