Asteroids Learning (Demo)
Program that learns to avoid Asteroids by machine learning. The operation is almost the same as Flappy Learning with 16 sensors of distance all around the ship.
- Performance optimizations on Neuroevolution.js (Typed Arrays, loop optimizations, reduced variable declarations, etc.)
- Changed population from 50 to 200
- "Wall" distance sensor fixed
- localStorage save (between 10 generations)
- Added an array per ship to serve as "memory" and a way to the output manipulate this (and worked well)
- Save best score network as "hero"
- Trained network sample included
- Tested with Google Chrome and Mozilla Firefox