press play and watch the car learn to drive. Shift click the flag for turbo mode to speed up learning. It works almost always, but sometimes it can get stuck so if that happens just click green flag again.
This project uses Q-learning to teach a car how to drive on this simple track. It uses 5 sensors in front of it that each have two states: on (if touching wall) and off (if not touching wall). The car is encouraged to have as few sensors on as possible (to stay in the middle of the track) and is punished for touching the wall.