This is a simple application of the Minimax algorithm in a Tic-Tac-Toe game made with Pygame.
The Minimax also has the Alpha-Beta Pruning optimization, wich allows faster plays by the AI.
Feel free to look the code and maybe understand more the minimax algorithm