Inspired by Coding Train and Code Bullet, here is my take on the Asteroids game with an AI trained using Neuroevolution through Augmenting Topologies (NEAT), given vision using ray casting.
You can watch a neural network evolve in real time here: https://immodal.github.io/asteroids/
Figure 1: AI playing the game
Figure 2: Showing neural network and ray casting