In this example, cars are driving on a circuit. They have sensors and a neural network. At first the cars don't know how to drive. The cars that go the farthest are replicated together to create the next generation.
This is a form of evolutionary aglorithm used in machine learning which is useful when we don't have data at the beginning.
See also my projects :
When we have chosen the best cars, we reproduce them to create a child.
var child = NeuralNetwork.reproduce(mother, father)
We can also create random mutations in the neural network.
var child = NeuralNetwork.mutate(car, funcref(self, "mutate"))
This project require Godot Engine 3.3.
- The source code is available under the MIT license.
- Art Assets are available under CC0 1.0 Universal (Racing Pack by Kenney)