I need some example source code to figure out how to make a intelligent computer move using backtracking. I want to make a tic tac toe problem only use a larger (5x5) grid so its not always guaranteed a draw playing a smart user.
I have made code to make a random move, but to make the game competitive I want to use the bactracking/tree method so that the user has to think about how to beat the computer opponent.
Start Free Trial