0.Click the green flag twice for best experience 1. First you must set how many clones you wish to initialize 2. Once it says true for clones Initialized then you can drag the goal(the green square) to where ever you want note the goal will always start at a random position. 3.Press the space button once you are happy with the placement of the goal 4.Then press space again to begin training Extra details: *You can change the amount of inputs the Ai will mutate in its inputs *I have tried to make the code more readable with notes as well to help people understand it better if they check it out.
This is an updated and better version of my first Ai since this supports multiple Ai's running at once. I can for certain promise you that by gen 100 it will be at least 95 in best reward Explanation: If you are wondering how it works it is very simple. The Ai's task is to reach the square. This is a genetic algorithm which means it simulates evolution. If you understand genetic even a little you might understand this. But basically at the start it just makes up random inputs since we just started. Then it runs those inputs. After it runs all the inputs we check to see who is the closest which is called the reward value the more reward the better it has done. Then we find who got the best reward value then take their inputs. Now we know what the best inputs are. Now we change some of the inputs, also known as mutating the inputs, and then we repeat through that cycle of run it, reward it, and mutate it until it has reached its goal whether that is getting to a square or finding the fastest line in a racing course.(Check the code if you want to learn more)