You would need some knowledge of building Deep Neural Network and Reinforcement Learning.
I would recommend SPINNINGUP.
Also you could read any research paper (a famous paper) on RL once, to get idea on any gaps in your knowledge.
oh thanks, i wanted to ask that if i were to code the same project without using ML models or anything related, would it be possible to just decide for the sprite using its xyz or position values? would it be more resource consuming [for example adding many if statements like an algorithm]
These are all from the sub-field of reinforcement learning (RL). The first 2 and the last are evolutionary methods, and from the abstract the third is some flavor of model-based RL.
Any course on reinforcement learning will give you a decent background in understanding the basics of how these classes of algorithms work.
I think it'd important to understand the background so you aren't lost when you're trying to apply these on problems, but that said, I won't recommend trying to implement these from scratch yourself: start from open-source baselines instead; there's a lot of tiny details to these algorithms that are hard to test, and one thing going wrong can make the whole algo fail in ways that are really hard to debug.
AwesomePokerPlayer t1_ixy3aaw wrote
You would need some knowledge of building Deep Neural Network and Reinforcement Learning. I would recommend SPINNINGUP. Also you could read any research paper (a famous paper) on RL once, to get idea on any gaps in your knowledge.
Spinning up should cover your basic though.