How to design simple Enemy AI for classic tank game

hey guys ,
I am new to cocos creator i am trying to figure out how to design simple Enemy AI for Classic Tank Game any advice will be really appreciated

This really isn’t related to Creator specifically.