An open API service indexing awesome lists of open source software.

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.

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/)