174 |
Neuroevolution of Neural Network of snakes in the Browser.
175 |
176 | This is a demonstration of evolving a neural network thanks to genetics algorithms in the browser
177 | using a multilayer perceptron (150-15-15-1).
178 |
179 | The initial population contains 36 individuals, each assigned a different genome.
180 | They will fight following a round-robin tournament.
181 | At the end the top 7 are kept alive, and the remaining 29 are created by breeding from the 7.
182 |
183 | Each snake has 50 sensors, each reporting 3 inputs:
184 |
185 | - 1) The distance the sensor has hit something normalized between 0 and 1
186 | - 2) 1 if this sensor touched the enemy body
187 | - 3) 1 if this sensor touched the enemy body
188 |
189 |
If you reset the simulation, unselect "Show Curves" & "Show Debug" and put the simulation speed to something your CPU supports.
190 |
Code on Github
191 |