This is my take on the Smart Rockets project. It implements a basic genetic algorithm. Check the coding train video for the original content.
Try it! 😄
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
Clone the repository
git clone git@github.com:synziv/smart-rocket.git <YOUR_PROJECT_NAME>
Install project dependencies
npm install
Run the local webpack-dev-server on http://localhost:8080/
npm start