All AI games
🚀
NEAT

Asteroid Dodge AI — NEAT + Speciation

How 30 ships evolve to dodge endless asteroids using 10 raycast inputs and NEAT speciation.

Play the game

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.

Need an AI engineer or data scientist?

I build custom ML models, AI agents, computer vision, and automation — from idea to production.