To build an optimal algorithm to play tictactoe of 3x3 or 4x4 and also support two player mode using raw html, js and css
Minimax game theory algorithm
Minimax is a kind of backtracking algorithm that is used in decision making and game theory to find the optimal move for a player, assuming that your opponent also plays optimally. It is widely used in two player turn based games such as Tic-Tac-Toe, Backgamon, Mancala, Chess, etc