This Python code can be cut and pasted into Google Colab and run as is. It will output the current generation and the nodes and connections of the best neural network evolved at each improvemnt until it reaches the optimal solution. This is my first attempt at implementing a research paper from scratch.
Read about my journey with NEAT on Medium. https://medium.com/@garybutler4/neat-implementing-my-first-research-paper-b0b0eba795b4
Find the original research paper here http://nn.cs.utexas.edu/downloads/papers/stanley.ec02.pdf