Tic Tac Toe perfect AI algorithm: deeper in “create fork” step
I've already read many Tic Tac Toe topics on StackOverflow. And I found the strategy on Wikipedia is suitable for my presentation project: A player can play perfect tic-tac-toe if they choose the move with the highest priority in the following table[3]. 1) Win: If you have two in a row, play the third to get three in a row. 2) Block: If the opponent has two in a row, play the third to block them. 3) Fork: Create an opportunity where you can win in two ways. 4) Block Opponent's Fork: Option 1: Create two in a row to force the opponent into defending, as long as it doesn't result in them