Tic Tac Toe Minimax AI

This assignment was done as part of our AI course at Futuregames. We were given the task of creating a Tic Tac Toe game with an AI. To practice my C++ skills i decided to create it as a C++ Console Application.

This is the code for the MiniMax Algorithm which is called for each valid move on the grid.

The algorithm is called from this function which is the function that decides the AIs best move based on the current state of the board

After finishing the assignment I wanted to run it through a couple of unit tests to make sure it worked as intended.