❌ Tic-Tac-Toe

❌ You
0
Draws
0
⭕ CPU
0
Your turn (❌)

About Tic-Tac-Toe

Tic-Tac-Toe (also called Noughts and Crosses, or Xs and Os) is one of the oldest strategy games in history — versions appear in ancient Rome around 100 BC under the name "Terni Lapilli." The familiar 3×3 grid version became widespread in England in the 19th century.

With perfect play by both sides, every game ends in a draw — which makes it a classic exercise in game theory. The computer AI here uses the minimax algorithm, making it unbeatable. Try to draw against it, then switch to 2-player mode to challenge a friend.

9
Squares on board
255,168
Possible games
100 BC
Ancient origin
Draw
Optimal outcome

Frequently asked questions

Can I beat the computer? +

No — with perfect play the computer never loses. The best you can achieve is a draw. The AI uses the minimax algorithm, which evaluates every possible outcome and always picks the optimal move.

How do I switch to 2-player mode? +

Click the "2 Players" button above the board. Both players share the same screen and take turns clicking cells. ❌ always goes first.

Is Tic-Tac-Toe always a draw with perfect play? +

Yes. Game theorists proved this in the 1940s. If both players never make a mistake, neither can win — the game always ends in a draw. This is why it's called a "solved game."

More games like this