Skip to content

alexisbrouillette/smart_rocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Smart Rockets 🚀

This is my take on the Smart Rockets project. It implements a basic genetic algorithm. Check the coding train video for the original content.

smart-rocket

Try it! 😄

Informations

Each rocket starts with a random color. You can use the color to see the best specie taking over the population.

You can see the best individual of the last generation by using the "show the fittest" button.

To optimize paths, the population starts iwth a pretty short lifespan(150 frames) and each 20 generations, it is incremented by 100 to max at 650.

👉 So wait at least 40 generations to see something interesting

Installation

Clone the repository

git clone git@github.com:synziv/smart-rocket.git <YOUR_PROJECT_NAME>

Setup

Install project dependencies

npm install

Development

Run the local webpack-dev-server on http://localhost:8080/

npm start