Heya there!
I worked on another mini-project as soon as I finished my last one (because why not). This video gave me the idea, and helped me in doing so aswell.
In simple terms, the ‘minimax algorithm’ recursively checks every move it can take (and it’s outcome) and calculates the best move for it to win.
It’s uncopylocked, so check out the juicy code for yourself!
[ROBLOX] TicTacToe AI Using the Minimax Algorithm - YouTube
The game: (15) TicTacToe AI - Roblox