https://github.com/dori-dev/send-rockets-to-mars-with-ai
Send rockets to Mars with genetic algorithm in python.
https://github.com/dori-dev/send-rockets-to-mars-with-ai
genetic-algorithm python
Last synced: about 1 year ago
JSON representation
Send rockets to Mars with genetic algorithm in python.
- Host: GitHub
- URL: https://github.com/dori-dev/send-rockets-to-mars-with-ai
- Owner: dori-dev
- License: mit
- Created: 2021-11-02T08:48:23.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-21T05:07:10.000Z (almost 4 years ago)
- Last Synced: 2023-03-05T17:29:19.985Z (over 3 years ago)
- Topics: genetic-algorithm, python
- Language: Python
- Homepage:
- Size: 303 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Send Rockets To Mars With AI
Send rockets to Mars with genetic algorithm in python and clean code!
#
## Tools
- Python 3
- EasyDraw
#
# How to Play
## Installation Requirements
```
pip install EasyDraw
```
## Run the Code
```
python3 main.py
```
## You Can Change
- You can change the `POPULATION_SIZE`, `ROCKET_LIFESPAN` and `MUTATION_RATE` constant variables to change generations.
- You can change the `BH_DIST`, `STARS_COUNT`, `BLACKHOLES_COUNT` constant variables to change GUI.
- You can change the calculations in `calculate_fitness` method in `Rocket` class to obtain different outputs!
#
## Project Tree
```
send-rockets-to-Mars-with-AI
├── classes.py
├── constant.py
├── functions.py
├── main.py
├── test_fitness.py
└── images
├── blackhole.png
├── earth.png
├── mars.png
├── moon.png
├── rocket-idle.png
└── rocket-moving.png
```
#
## Links
Download Source Code: [Click Here](https://github.com/dori-dev/send-rockets-to-Mars-with-AI/archive/refs/heads/main.zip)
My Github Account: [Click Here](https://github.com/dori-dev/)