AI for game I want to understand what logic to use [closed]

  Kiến thức lập trình

my game is similar to subway surfers and I want to write an AI for it, but there are several points that are not clear to me, how do we even do this? I wrote a program code that finds objects during the game, but I don’t understand what to do next, what logic to use? I will be grateful if you give advice and which libraries are best to use (Yes, I know that there is a project on Github for subway surfers, I didn’t understand it

New contributor

Ally is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.