Its goal is to touch the green blob. Press z to have the options to turn off raycast visabillity. This is my firest attempt at AI in scratch but it isn't really working right. I'm planning on trying to make a more complicated design here soon.
It is glitchy. There are two major glitches 1. It hits a corner and then keeps building speed toward that corner. 2. It keeps following a strange pattern over and over again (changes every time you hit green flag) This AI uses a Neural Network and Reinforcement Learning. Feel free to check out the code, but it might be a bit over your head.