I've written a GUI Tic Tac Toe program. I've used a huge set of "if" statements to decide where the computer ought to place the "O" in order to put up a good fight against the human player.
But the "if" set just doesn't feel efficient. It seems like a haphazard solution.
Could some one please describe better ways to go about programming the artificial intelligence. I'd appreciate it if you could keep it dumbed down.