Quote:

*Originally posted by BMJ *

**What? You don't need to use something like a minimax algorithm for Tic-Tac-Toe!**

Think about Tic-Tac-Toe for a second. What's the only 'strategy' the computer can make? It prevents you from getting **3** in a row.

So... using a matrix, parse the matrix after the player moves and check for any potential wins (2 adjacent X/Os)... then have the computer move to the 3rd position...

There's a little more to it, but it's not complicated.

yes but then you can still trap the computer :(