How the AI works
Thirty ships evolve with NEAT. Each is a neural network that thrusts and rotates to survive an endless asteroid field.
Inputs → outputs
- Inputs: 10 raycast sensors detecting nearby asteroids around the ship.
- Outputs: rotate left/right and thrust.
Speciation
NEAT groups similar networks into species so promising-but-new structures aren't wiped out before they mature — this preserves diversity and helps escape local optima.
What you see on screen
The glowing sensor lines reveal the ship's field of view; longer survival times each generation show the dodging policy improving.