This noughts and crosses artificial intelligence was a project I built to solidify my understanding of AI algorithms. It is a C++ program that employs the minimax algorithm for decision-making and game theory to make the optimal move to win. I've also included options for a modified algorithm using alpha-beta pruning and early termination so that the AI behaviour can vary. After all, it would be pretty boring to play a game that is impossible to win!
Highlights
- Designed and implemented an noughts and crosses AI using the minimax algorithm.
- Added alpha-beta pruning for optimisation.
- Added early termination options for variation in performance.
- Currently developing front-end interface.