hi, im trying to make a kind of classic 2D arcade-shooter but played by an AI controlled by a neural network with a genetic algorithm, but I think my approach of the neural network is flawed as my AI doesnt learn very fast and sometimes just doesnt learn right..
for now the only inputs are the distance of the ship from the top of the screen , the distance from the bottom of the screen, the distance from the enemy ship and the top of the screen and the distance from the enemy ship and the bottom. (4 floats)
the 2 output are how much the ships goes UP and how much it goes DOWN. (2 floats)
the player ship always shoots lasers at a constant rate (fast)
there is only 1 enemy at a time on the screen, if the enemy goes all the way to the left the "player" lose. Everytime the "player" shoots at an enemy it gets 1 score. there is 10 different tries at first with 10 random neural network and then the 10 ships are copy of the one with the best score with plus some mutations making it better and better (in theory..)
here is how my neural network goes:
the inputs are set, than they add their value multiplied by the synapse "strenght" to each hidden neuron. then if the hidden neuron's value goes beyond the threshold it adds its value multiplied by the synapse strenght to the output neurons.
what am I doing wrong ?

