Algorithms for A.I. can include many aspects. Essentially, to break these down into simple terms, they are just search algorithms. Following are some of the most popular search algorithms, which can be implemented into A.I. logic. In between, there are pseudo codes for understanding these examples. Once you go through these, we can come up with some basic A.I. logic for our game if you wish to include it from your side.