This is the code about Tic Tac Toe based on what my professor said. He said I can put both step 2 and step 3 in else statement, but I don’t know how to do it. I gave it a try, but IntelliJ(the program I’m using) said it doesn’t have a return statement. I don’t why it has errors. Please
Tag: tic-tac-toe
How to display ‘thinking’ image while Java method is running on Android app
I’m coding a tic tac toe app in which the user can play against the computer. In one of the difficulties, I’ve implemented an algorithm (minimax) to find the best move, and on the first move, the function which uses this algorithm to make the move seems to take a noticeable time to run. I want to make a ‘thinking’