I've been working with the recursion method suggested at this site:
http://www11.ewebcity.com/erwnerve/tictactoe.htm
for many hours now.
basically this recursion plays out every game possible for each possible spot to move into by the computer ,and picks one which will result a win as soon as possible.
The AI knows how to block and win if it can, but it does not know how to block opponent two way wins, or set up its own two way win. I am not too sure where to put in the check for two way wins in the recursion. Please help