Skip to content

dori-dev/send-rockets-to-Mars-with-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

My Github Account: Click Here

About

Send rockets to Mars with genetic algorithm in python.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages