https://github.com/null-byte-00/fargasht
A simple evolution simulator written in python
https://github.com/null-byte-00/fargasht
ai data-science evolution evolutionary-algorithms machine-learning neural-network numpy pygame
Last synced: 16 days ago
JSON representation
A simple evolution simulator written in python
- Host: GitHub
- URL: https://github.com/null-byte-00/fargasht
- Owner: Null-byte-00
- License: gpl-3.0
- Created: 2023-01-12T17:11:56.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-12T21:00:00.000Z (about 3 years ago)
- Last Synced: 2024-01-26T09:16:18.774Z (about 2 years ago)
- Topics: ai, data-science, evolution, evolutionary-algorithms, machine-learning, neural-network, numpy, pygame
- Language: Python
- Homepage:
- Size: 4.09 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Fargasht
Fargasht is a simple program to simulate evolution in nature using neural networks and machine learning
## Use
### first clone the repository
```
git clone https://github.com/Null-byte-00/Fargasht/
```
### enter directory
```
cd Fargasht
```
### create a virtual enviroment
```
virtualenv venv
```
### activate virtual enviroment
windows(Powershell):
```
.\venv\script\activate.ps1
```
linux:
```
source venv/bin/activate
```
### Install requirements
```
pip install -r requirements.txt
```
### run the simulator
```
python main.py
```
## How it works?
first you run the program you'll see 100 planktons randomly moving around. each of these creatures have their own neural network. but their brain connections are
completely random so they are moving randomly.
after each generation all the population dies. but those who are on the right side of the screen have a chance to mate and create the next generation
here is generation zero

and here is generation 91

as you can see the planktons' brains have evolved to go to the right side of the screen