Click the green flag, and just watch the neural network learn the best way to insure that the green ball DOES NOT touch the bottom. Hooray! For all of you nerds I have comments in the code explaining how everything works!
This uses something called Parentage Evolution. The reason why it's called Parentage Evolution is because you have two neural networks play (that's why it's "Parentage" Evolution...), you pick the one that had the highest score, and make 2 other copies of that one, but these ones are slightly mutated, and thus, the process continues, making something that I like to call the Parentage Natural Selection Process, or PNSP. #ai #ai #all #ai #ai #all #ai #ai #all #ai