To be honest, I never quite managed to create a truly effective enemy :D It has two modes of action: either making a random move or capturing a piece if possible. Unfortunately, I still ran out of time to add a proper dialogue system to the game