A genetic algorithm learns how to fight!

Опубликовано: 17 Май 2026
на канале: Ding Nicolas
2,698,636
45k

This is an implementation of a genetic algorithm on a neural network. The "fighters" are capable of self-improvement in order to become stronger.

As you can see, the "fighters" are learning how to fight. Each one of them can see the bullets and the enemy in their vision field (represented by two lines), and have 5 possible actions : move forward, turn right, turn left, shoot and adjust their field of view.

For more details about the neural network, the programming, click here : http://doublezoom.free.fr/programmati... (french)

This program was made possible thanks to Pierre Lataillade and Maxime Gardet.

This program was done in lua, on my iPad, thanks to codea (http://twolivesleft.com/Codea/)
The music, Five Armies by Kevin MacLeod is licensed under a CC Attribution 3.0.