I wouldn't know that, i guess you could hard code every piece, or maybe look up the algorythm, so making chess-game? Much luck, and hope it turns out to be good and creative
Edit: hardcoding should be like this:
Make it tile-based, store all places in list or string, first let the ai check the opponents board, then check ai's pieces and let him look for the most important piece he could defeat atm, and else let him do a move to be close to defeating a piece, and just go on every move like that