Skip to content

vcasagrande/AsteroidsLearning

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

alt tag

In This Fork

  • 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

Extra

Notes

  • Tested with Google Chrome and Mozilla Firefox

About

Program that learns to avoid asteroids by machine learning (Neuroevolution)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 89.4%
  • HTML 10.6%