AI For Games had me implementing an AI for a game of capture the flag. There were fighting elements and tactical elements to the game.
We were given a project with basic code functions and had to choose an AI algorithm to implement. I chose to use a finite state machine to implement the AI behaviours.
This is because they are easy to implement, and can support a wide range of AI behaviours when done correctly and that it would be most appropriate for the task.