Completed Tic Tac Toe - Requesting critique

Completed Tic Tac Toe - Requesting critique
0

#1

I have completed my Tic Tac Toe.

The AI is pretty basic.

Please try it out and suggest areas of improvement. If you can suggest some resources/ways/strategies to improve my AI, that would be greatly appreciated.

Please critique my UI as well.

Here is the link - TicTacToe

Thanks in advance.

Thanks to stackoverflow, I already found some suggestion -


More suggestions are welcome tho.

UPDATE 1 -

I have improved the game’s AI. Should be pretty unbeatable.
Please give it a try and let me know there is some way to beat it and/or it has some other bugs.

UPDATE 2 -
Thanks to @parleydk , @alexwpotter, @amit-s I found many bugs in this project which I think I have fixed.

UPDATE 3 -

The AI should be pretty robust. But after heavy testing by @amit-s and @unity4a, turns out there is one way to beat the game, It is not full proof but it is possible to beat it.

For now I will leave the loophole in the game. If anyone can find it, they are welcome to use it.