Simple AI for tic-tac-toe...
A few days ago i read a thread and someone posted a simple AI for the naughts and crosses game, which looks 'something' like this:
1) If computer can win, do so
2) IF computer can prevent player from winning, do so
3) Else, move to empty spot
BUt i can' remember it exactly. I tried to search for that thread but i still couldn't find it after 15mins of search. If that person read this thread could u please fill in the missing steps of the simple AI. Or if anyone knows something better or something to add on to the steps can u do so pls?
thnx in advance