The AI learns to shoot accurately at a target. How it works: Basically it first fires in random directions, then it sees which ones came close to the target, in which case if fires in all the directions that came close. Then, the more times it does it, the closer it needs to be, so it gets more and more accurate until it shoots entirely right at the target! Its kind of like genetic evolution AI but without the neural network.
Inspired by a YouTube channel I started watching called Code Bullet, which make AI that learns to play video games. (Be warned, the youtuber does swear sometimes) I made a learning AI! Yay!