It was a bit buggy but I beat the cpu. If you play tic-tac-toe the player who goes first should be able to win or at worst case force a draw. If you go second you should be able to force a draw. With two players who both know how to play an optimal game, you will always have a draw.
Tic-tac-toe is basically a solved game which should make it easy to code.
Tic-tac-toe is basically a solved game which should make it easy to code.