i want to know what can be best choice to implement ai for these kinds of games.
The best choice is whatever makes your game work the way you want it to. There is no "best" way to do AI.
Check out the links provided in the previous posts and make use of Google to add to your research. Gather the ideas together and see what best fits the needs of your game.