You and the AI alternate moving the queen. The player who moves it to the bottom-left corner wins.
First, you chooses where the queen starts. Then, the AI chooses who goes first.