This is just a car with no starting knowledge, which teaches itself how to drive around the track. (Usually takes from 5-30 generations) _________________________________________ Click on the "How it Works" button to see how AI's work in an easy to understand way (as easy as AI gets anyways). _________________________________________ Just play it and watch it evolve, if you want to speed it up just put it in turbo speed by holding shift and clicking the green flag. _________________________________________ You can change the mutation rate, the higher it is the more random the cars "offspring" will be, and the quicker it will evolve. ___________________________________________ Im currently working on a flappy bird version of this same AI !!
If you think it deserves it can you please suggest it to be featured? https://scratch.mit.edu/studios/4228481/comments/ just post the link of the project and say what you think :D __________________________________________ Note the care may cheat sometimes and start spinning if you draw the track too wide, this is because the car considers itself better the further it drives, but by further it means in any direction, so that means small circles count as points. __________________________________________ HOW IT WORKS: The car sends out 6 "rays" which measure distances around the car. Those 6 inputs are run through a neural network which then has 2 possible out puts, turn (- or +) or accelerate (- or +). Each generation has 3 cars (a,b and c) The best car is taken and randomised a bit, depending on how high the mutation is, then they all try to complete the track and the best is selected again. After a few generations they learn how to complete the track.