Original Post
I'm trying to teach a neural network to play pong and so far it's not going very well. I'm using supervised training where I play against myself and every time I move the pad that the AI is going to use I save away some data and when I decide I've gathered enough data I use that for the training.
The data I save away is the balls x,y position as well as ball direction x and y. The y position of the pad. This is what I use for input.
If the pad moves up then I set target outputs for the two output neurons to 1 and 0 and if I move down I set it to 0 and 1.
Its a feed forward network and so far the best results has been that if the ball is moving downwards the AI moves downwards and the ball goes upwards the pad moves upwards. But it wont take in consideration of the balls current position meaning that the pad moves either towards the bottom or the top of the screen.
The data I save away is the balls x,y position as well as ball direction x and y. The y position of the pad. This is what I use for input.
If the pad moves up then I set target outputs for the two output neurons to 1 and 0 and if I move down I set it to 0 and 1.
Its a feed forward network and so far the best results has been that if the ball is moving downwards the AI moves downwards and the ball goes upwards the pad moves upwards. But it wont take in consideration of the balls current position meaning that the pad moves either towards the bottom or the top of the screen.