TIC TAC TOE HELP

THANKS
Last edited on
please use code tags <>

I need to show the computer(X) always go first and always wins or ties.


you need to make algorithm to best play, X.

i.e. when, ar[2][0] and ar[2][1] = O, then ar[2][2] must be X next move to prevent defeat.

when there is no threat, it will play for win (making a 3 point straight line).
Topic archived. No new replies allowed.